From: Petr Baudis <pasky@suse.cz>
To: Nikolai Weibull <now@bitwi.se>
Cc: git <git@vger.kernel.org>
Subject: Re: Shouldn't git-ls-files --others use $GIT_DIR?
Date: Sun, 19 Nov 2006 19:37:56 +0100 [thread overview]
Message-ID: <20061119183756.GZ7201@pasky.or.cz> (raw)
In-Reply-To: <dbfc82860611190537q77c8a358m184377a21d5a3e11@mail.gmail.com>
On Sun, Nov 19, 2006 at 02:37:42PM CET, Nikolai Weibull wrote:
> If I do
>
> GIT_DIR=$HOME/projects/<project>/.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.
GIT_DIR is a path to the Git repository the commands should work with,
but if they work on working tree, they look at the current directory for
it.
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
The meaning of Stonehenge in Traflamadorian, when viewed from above, is:
"Replacement part being rushed with all possible speed."
next prev parent reply other threads:[~2006-11-19 18:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-19 13:37 Shouldn't git-ls-files --others use $GIT_DIR? Nikolai Weibull
2006-11-19 18:37 ` Petr Baudis [this message]
2006-11-20 19:51 ` Nikolai Weibull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061119183756.GZ7201@pasky.or.cz \
--to=pasky@suse.cz \
--cc=git@vger.kernel.org \
--cc=now@bitwi.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).