From: Nikolai Weibull Date: Mon, 20 Nov 2006 19:51:32 GMT Subject: Re: Shouldn't git-ls-files --others use $GIT_DIR? Message-ID: In-Reply-To: <20061119183756.GZ7201@pasky.or.cz> On 11/19/06, Petr Baudis wrote: > On Sun, Nov 19, 2006 at 02:37:42PM CET, Nikolai Weibull wrote: > > If I do > > > > GIT_DIR=$HOME/projects//.git git ls-files --others > > > > from, e.g., $HOME, I get a list of all the files in $HOME and its > > subdirectories that aren't in said git repository. Shouldn't --others > > use $GIT_DIR, instead of ".", or am I missing something here? > > git-ls-files --others lists untracked files in the current directory by > comparing it to the index stored in $GIT_DIR/index and listing files > present in the current directory but not in the index. Ah, of course; how silly of me. Thanks.