[Server-devel] [XSCE] Dealing with huge xsce repo size

James Cameron quozl at laptop.org
Sun Sep 8 23:05:39 EDT 2013


On Sun, Sep 08, 2013 at 07:41:29PM -0700, Anish Mangal wrote:
> This is very helpful. Thanks. I suspect this doesn't affect users
> submitting patches?

Correct.

You can try it yourself.

1.  clone your copy of the repository,

2.  clone again with --depth=1,

3.  make the same change to both repositories, and commit,

4.  use git format-patch,

5.  evaluate the difference in the output,

6.  apply the patch to any repository.

For example:

% cd /tmp
% git clone --depth=1 file:///olpc/sugar.git sugar-limited-depth.git
% git clone file:///olpc/sugar.git sugar-full-depth.git
% (cd sugar-full-depth.git && echo '"John Doe" <doe at example.com>' >> AUTHORS && git commit -m 'test change' AUTHORS && git format-patch -1)
% (cd sugar-limited-depth.git && echo '"John Doe" <doe at example.com>' >> AUTHORS && git commit -m 'test change' AUTHORS && git format-patch -1)
% diff -u sugar-full-depth.git/0001-test-change.patch sugar-limited-depth.git/0001-test-change.patch 

(only the date and patch hash changes)

-- 
James Cameron
http://quozl.linux.org.au/


More information about the Server-devel mailing list