git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Do moves add to repository size?
@ 2008-12-31  9:11 Simon Chiang
  2008-12-31  9:46 ` demerphq
  2008-12-31 15:17 ` Alex Riesen
  0 siblings, 2 replies; 4+ messages in thread
From: Simon Chiang @ 2008-12-31  9:11 UTC (permalink / raw)
  To: git

Hey, I'm quite curious to know if moves/renames duplicate the file
content in the repository (and hence grow the repository size) or if
they just change the location of the content.  I want to drastically
reorganize a repository and I'm wondering if will double it in size.

Thanks,

- Simon

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Do moves add to repository size?
  2008-12-31  9:11 Do moves add to repository size? Simon Chiang
@ 2008-12-31  9:46 ` demerphq
  2008-12-31 15:17 ` Alex Riesen
  1 sibling, 0 replies; 4+ messages in thread
From: demerphq @ 2008-12-31  9:46 UTC (permalink / raw)
  To: Simon Chiang; +Cc: git

2008/12/31 Simon Chiang <simon.a.chiang@gmail.com>:
> Hey, I'm quite curious to know if moves/renames duplicate the file
> content in the repository (and hence grow the repository size) or if
> they just change the location of the content.  I want to drastically
> reorganize a repository and I'm wondering if will double it in size.

No it wont. Git uses a content addressable storage. And since in a
rename the content doesnt change....

Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Do moves add to repository size?
  2008-12-31  9:11 Do moves add to repository size? Simon Chiang
  2008-12-31  9:46 ` demerphq
@ 2008-12-31 15:17 ` Alex Riesen
  2008-12-31 15:53   ` Simon Chiang
  1 sibling, 1 reply; 4+ messages in thread
From: Alex Riesen @ 2008-12-31 15:17 UTC (permalink / raw)
  To: Simon Chiang; +Cc: git

2008/12/31 Simon Chiang <simon.a.chiang@gmail.com>:
> Hey, I'm quite curious to know if moves/renames duplicate the file
> content in the repository (and hence grow the repository size) or if
> they just change the location of the content.  I want to drastically
> reorganize a repository and I'm wondering if will double it in size.

It wont double its size, but it will grow a little: the tree objects
which contain names of the data (the file names) will be all changed.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Do moves add to repository size?
  2008-12-31 15:17 ` Alex Riesen
@ 2008-12-31 15:53   ` Simon Chiang
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Chiang @ 2008-12-31 15:53 UTC (permalink / raw)
  To: git

Great thanks!  I suspected that was the case.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-31 15:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-31  9:11 Do moves add to repository size? Simon Chiang
2008-12-31  9:46 ` demerphq
2008-12-31 15:17 ` Alex Riesen
2008-12-31 15:53   ` Simon Chiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).