Re: git status doesn't ignore GIT_DIR directory?

2015-05-23 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: Junio C Hamano gits...@pobox.com 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

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 m...@glandium.org 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

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 t...@rightscale.com 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

Re: git status doesn't ignore GIT_DIR directory?

2015-05-23 Thread Junio C Hamano
Mike Hommey m...@glandium.org 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

Re: git status doesn't ignore GIT_DIR directory?

2015-05-23 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com 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

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

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 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. E.g.

git status doesn't ignore GIT_DIR directory?

2015-05-22 Thread Thorsten von Eicken
I renamed my .git directory to _git and I'm surprised that git status thinks that it's an untracked file: $ GIT_DIR=_git git status On branch master Your branch is up-to-date with 'origin/master'. Untracked files: (use git add file... to include in what will be committed) _git/

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 it to