Re: [PATCH] add: add --bulk to index all objects into a pack file

2013-10-03 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: The use case is tar -xzf bigproject.tar.gz cd bigproject git init git add . # git grep or something Two obvious thoughts, and a half. (1) This particular invocation of git add can easily detect that it is run in a

Re: [PATCH] add: add --bulk to index all objects into a pack file

2013-10-03 Thread Duy Nguyen
On Thu, Oct 3, 2013 at 1:43 PM, Junio C Hamano gits...@pobox.com wrote: Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: The use case is tar -xzf bigproject.tar.gz cd bigproject git init git add . # git grep or something Two obvious thoughts, and a half. (1) This

[PATCH] add: add --bulk to index all objects into a pack file

2013-10-02 Thread Nguyễn Thái Ngọc Duy
The use case is tar -xzf bigproject.tar.gz cd bigproject git init git add . # git grep or something The first add will generate a bunch of loose objects. With --bulk, all of them are forced into a single pack instead, less clutter on disk and maybe faster object access. This