Re: git status doesn't ignore GIT_DIR directory?

2015-05-23 Thread Junio C Hamano
Junio C Hamano writes: > Junio C Hamano writes: > >> I think both of you are wrong ;-) >> >> The thing is, what you are seeing does not have much to do with >> GIT_DIR. It is "what Git does when it finds a directory inside the >> working tree of a project". And ".git" is the only special thing

Re: git status doesn't ignore GIT_DIR directory?

2015-05-23 Thread Junio C Hamano
Junio C Hamano writes: > I think both of you are wrong ;-) > > The thing is, what you are seeing does not have much to do with > GIT_DIR. It is "what Git does when it finds a directory inside the > working tree of a project". And ".git" is the only special thing in > that context. In short, I

Re: git status doesn't ignore GIT_DIR directory?

2015-05-23 Thread Junio C Hamano
Mike Hommey writes: > On Sat, May 23, 2015 at 09:22:56AM +0700, Duy Nguyen wrote: >> On Fri, May 22, 2015 at 07:03:48PM -0700, Junio C Hamano wrote: >> > As far as I know, GIT_DIR was prepared as a mechanism to point at >> > another .git directory that does not live inside the working tree, not >

Re: git status doesn't ignore GIT_DIR directory?

2015-05-23 Thread Duy Nguyen
On Sat, May 23, 2015 at 11:41 AM, Thorsten von Eicken wrote: > On 5/22/2015 7:22 PM, Duy Nguyen wrote: >> On Fri, May 22, 2015 at 07:03:48PM -0700, Junio C Hamano wrote: >>> As far as I know, GIT_DIR was prepared as a mechanism to point at >>> another .git directory that does not live inside the w

Re: git status doesn't ignore GIT_DIR directory?

2015-05-23 Thread Duy Nguyen
On Sat, May 23, 2015 at 12:39 PM, Mike Hommey wrote: > On Sat, May 23, 2015 at 09:22:56AM +0700, Duy Nguyen wrote: >> --- a/Documentation/git.txt >> +++ b/Documentation/git.txt >> @@ -691,6 +691,9 @@ Git so take care if using Cogito etc. >> specifies a path to use instead of the default `.gi

Re: git status doesn't ignore GIT_DIR directory?

2015-05-22 Thread Mike Hommey
On Sat, May 23, 2015 at 09:22:56AM +0700, Duy Nguyen wrote: > On Fri, May 22, 2015 at 07:03:48PM -0700, Junio C Hamano wrote: > > As far as I know, GIT_DIR was prepared as a mechanism to point at > > another .git directory that does not live inside the working tree, not > > as a mechanism to rename

Re: git status doesn't ignore GIT_DIR directory?

2015-05-22 Thread Thorsten von Eicken
On 5/22/2015 7:22 PM, Duy Nguyen wrote: > On Fri, May 22, 2015 at 07:03:48PM -0700, Junio C Hamano wrote: >> As far as I know, GIT_DIR was prepared as a mechanism to point at >> another .git directory that does not live inside the working tree, not >> as a mechanism to rename it to arbitrary name.

Re: git status doesn't ignore GIT_DIR directory?

2015-05-22 Thread Duy Nguyen
On Fri, May 22, 2015 at 07:03:48PM -0700, Junio C Hamano wrote: > As far as I know, GIT_DIR was prepared as a mechanism to point at > another .git directory that does not live inside the working tree, not > as a mechanism to rename it to arbitrary name. E.g. > > $ git init > $ mv .git .svn > $

Re: git status doesn't ignore GIT_DIR directory?

2015-05-22 Thread Junio C Hamano
As far as I know, GIT_DIR was prepared as a mechanism to point at another .git directory that does not live inside the working tree, not as a mechanism to rename it to arbitrary name. E.g. $ git init $ mv .git .svn $ GIT_DIR=$(pwd)/.svn ; export GIT_DIR is not expected to work. On Fri, May 2