Re: [RFC/PATCH 1/8] update-index: add untracked cache notifications

2015-12-07 Thread Duy Nguyen
On Mon, Dec 7, 2015 at 10:08 AM, Christian Couder wrote: > On Wed, Dec 2, 2015 at 8:16 PM, Duy Nguyen wrote: >>> --- a/builtin/update-index.c >>> +++ b/builtin/update-index.c >>> @@ -121,7 +121,7 @@ static int

Re: [RFC/PATCH 1/8] update-index: add untracked cache notifications

2015-12-07 Thread Christian Couder
On Wed, Dec 2, 2015 at 8:16 PM, Duy Nguyen wrote: > On Tue, Dec 1, 2015 at 9:31 PM, Christian Couder > wrote: >> Doing: >> >> cd /tmp >> git --git-dir=/git/somewhere/else/.git update-index --untracked-cache >> >> doesn't work how one would

Re: [RFC/PATCH 1/8] update-index: add untracked cache notifications

2015-12-02 Thread Duy Nguyen
On Tue, Dec 1, 2015 at 9:31 PM, Christian Couder wrote: > Doing: > > cd /tmp > git --git-dir=/git/somewhere/else/.git update-index --untracked-cache > > doesn't work how one would expect. It hardcodes "/tmp" as the directory > that "works" into the index, so if you

[RFC/PATCH 1/8] update-index: add untracked cache notifications

2015-12-01 Thread Christian Couder
Doing: cd /tmp git --git-dir=/git/somewhere/else/.git update-index --untracked-cache doesn't work how one would expect. It hardcodes "/tmp" as the directory that "works" into the index, so if you use the working tree, you'll never use the untracked cache. With this patch "git update-index