All of lore.kernel.org
 help / color / mirror / Atom feed
* git repository size / compression
@ 2011-09-09  2:37 neubyr
  2011-09-09  8:23 ` Carlos Martín Nieto
  0 siblings, 1 reply; 10+ messages in thread
From: neubyr @ 2011-09-09  2:37 UTC (permalink / raw)
  To: git

I have a test git repository with just two files in it. One of the
file in it has a set of two lines that is repeated n times.
e.g.:
{{{
$ for i in {1..5}; do cat ./lexico.txt >> lexico1.txt &&  cat
./lexico.txt >> lexico1.txt && mv ./lexico1.txt ./lexico.txt;  done
}}}

I ran above command few times and performed commit after each run. Now
disk usage of this repository directory is mentioned below. The 419M
is working directory size and 2.7M is git repository/database size.

{{{
$ du -h -d 1 .
2.7M    ./.git
419M    .

}}}

Is it because of the compression performed by git before storing data
(or before sending commit)??

Following were results with subversion:

Subversion client (redundant(?) copy exists in .svn/text-base/
directory, hence double size in client):
{{{
$ du -h -d 1
416M    ./.svn
832M    .
}}}

Subversion repo/server:
{{{
$ du -h -d 1
 12K    ./conf
1.2M    ./db
 36K    ./hooks
8.0K    ./locks
1.2M    .
}}}

--
neuby.r

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

end of thread, other threads:[~2011-09-09 17:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-09  2:37 git repository size / compression neubyr
2011-09-09  8:23 ` Carlos Martín Nieto
2011-09-09 14:04   ` neubyr
2011-09-09 14:25     ` Sverre Rabbelier
2011-09-09 14:28     ` Carlos Martín Nieto
2011-09-09 15:07       ` neubyr
2011-09-09 14:54     ` Jakub Narebski
2011-09-09 15:09       ` neubyr
2011-09-09 16:05   ` John Szakmeister
2011-09-09 17:49     ` Andreas Krey

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.