* FYI, emacs.git repo size: now 155M, was 1.1G
@ 2009-10-09 8:31 Jim Meyering
2009-10-09 12:12 ` David Reitter
0 siblings, 1 reply; 2+ messages in thread
From: Jim Meyering @ 2009-10-09 8:31 UTC (permalink / raw)
To: Emacs development discussions
FYI, I just checked on the emacs.git repository
and found it to be unexpectedly large at over 1 GiB:
$ du -sh .; git gc; du -sh .
1.1G .
Counting objects: 539769, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (127621/127621), done.
Writing objects: 100% (539769/539769), done.
Total 539769 (delta 423801), reused 524422 (delta 411781)
Removing duplicate objects: 100% (256/256), done.
155M .
So I ran git's garbage-collector and that brought the size down to 155M.
Note that if your own emacs/.git/ directory is larger than say 200M,
you too can save some space by running "git gc".
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: FYI, emacs.git repo size: now 155M, was 1.1G
2009-10-09 8:31 FYI, emacs.git repo size: now 155M, was 1.1G Jim Meyering
@ 2009-10-09 12:12 ` David Reitter
0 siblings, 0 replies; 2+ messages in thread
From: David Reitter @ 2009-10-09 12:12 UTC (permalink / raw)
To: Jim Meyering, Emacs development discussions
On Oct 9, 2009, at 4:31 AM, Jim Meyering wrote:
>
> Note that if your own emacs/.git/ directory is larger than say 200M,
> you too can save some space by running "git gc".
Wouldn't it do that automatically once a month?
The other space-saving function is "git-new-workdir". I think it's
"contrib" rather than installed by default, but it's a life-saver when
"git checkout" takes a bit too long (it takes maybe 5 seconds for me
to switch to another branch with my Emacs repository). It creates a
separate directory with just a different branch, while sharing the a
central (yet local) repository. Kind of like how Bazaar does it.
This saves a lot of space - and time: it's a excellent solution when
re-building takes a long time after switching branches.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-09 12:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-09 8:31 FYI, emacs.git repo size: now 155M, was 1.1G Jim Meyering
2009-10-09 12:12 ` David Reitter
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.