{"thread":{"id":"43429","subject":"Shouldn't git-ls-files --others use $GIT_DIR?","startedAt":"2006-11-19T13:37:42Z","lastAt":"2006-11-20T19:51:32Z","messageCount":3,"participants":["Nikolai Weibull","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"294746","messageId":"dbfc82860611190537q77c8a358m184377a21d5a3e11@mail.gmail.com","threadId":"43429","inReplyTo":null,"subject":"Shouldn't git-ls-files --others use $GIT_DIR?","fromName":"Nikolai Weibull","fromEmail":"now@bitwi.se","sentAt":"2006-11-19T13:37:42Z","receivedAt":"2006-11-19T13:37:42Z","isPatch":false,"sender":{"key":"now@bitwi.se","avatar":"https://gravatar.com/avatar/d9242f067845cf9a72be23e4213c3b6e53492178e5df97372088a441af846133?d=mp&s=160"},"body":"If I do\n\nGIT_DIR=$HOME/projects/<project>/.git git ls-files --others\n\nfrom, e.g., $HOME, I get a list of all the files in $HOME and its\nsubdirectories that aren't in said git repository.  Shouldn't --others\nuse $GIT_DIR, instead of \".\", or am I missing something here?\n\n"},{"id":"296860","messageId":"20061119183756.GZ7201@pasky.or.cz","threadId":"43429","inReplyTo":"dbfc82860611190537q77c8a358m184377a21d5a3e11@mail.gmail.com","subject":"Re: Shouldn't git-ls-files --others use $GIT_DIR?","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2006-11-19T18:37:56Z","receivedAt":"2006-11-19T18:37:56Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"On Sun, Nov 19, 2006 at 02:37:42PM CET, Nikolai Weibull wrote:\n> If I do\n> \n> GIT_DIR=$HOME/projects/<project>/.git git ls-files --others\n> \n> from, e.g., $HOME, I get a list of all the files in $HOME and its\n> subdirectories that aren't in said git repository.  Shouldn't --others\n> use $GIT_DIR, instead of \".\", or am I missing something here?\n\ngit-ls-files --others lists untracked files in the current directory by\ncomparing it to the index stored in $GIT_DIR/index and listing files\npresent in the current directory but not in the index.\n\nGIT_DIR is a path to the Git repository the commands should work with,\nbut if they work on working tree, they look at the current directory for\nit.\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nThe meaning of Stonehenge in Traflamadorian, when viewed from above, is:\n\"Replacement part being rushed with all possible speed.\"\n"},{"id":"298636","messageId":"dbfc82860611201151m52933720lfef939b7f6803411@mail.gmail.com","threadId":"43429","inReplyTo":"20061119183756.GZ7201@pasky.or.cz","subject":"Re: Shouldn't git-ls-files --others use $GIT_DIR?","fromName":"Nikolai Weibull","fromEmail":"now@bitwi.se","sentAt":"2006-11-20T19:51:32Z","receivedAt":"2006-11-20T19:51:32Z","isPatch":false,"sender":{"key":"now@bitwi.se","avatar":"https://gravatar.com/avatar/d9242f067845cf9a72be23e4213c3b6e53492178e5df97372088a441af846133?d=mp&s=160"},"body":"On 11/19/06, Petr Baudis <pasky@suse.cz> wrote:\n> On Sun, Nov 19, 2006 at 02:37:42PM CET, Nikolai Weibull wrote:\n> > If I do\n> >\n> > GIT_DIR=$HOME/projects/<project>/.git git ls-files --others\n> >\n> > from, e.g., $HOME, I get a list of all the files in $HOME and its\n> > subdirectories that aren't in said git repository.  Shouldn't --others\n> > use $GIT_DIR, instead of \".\", or am I missing something here?\n>\n> git-ls-files --others lists untracked files in the current directory by\n> comparing it to the index stored in $GIT_DIR/index and listing files\n> present in the current directory but not in the index.\n\nAh, of course; how silly of me.  Thanks.\n\n"}]}