Re: [PATCH 1/2] Add "--only-untracked" flag to status commands.
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Aug 24, 2007, 11:40 UTC
- Message-ID
- <vpqps1dyxbu.fsf@bauges.imag.fr>
- In-Reply-To
- <Pine.LNX.4.64.0708241154410.16728@wbgn129.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Would it not be better to imitate the "-x" and "-X" options of ls-files, > then? You could achieve the effect you desire by "git status -x \*" > then.
That's equivalent feature-wise, but a bit slower performance-wise (the proposed patch skips file listing totally). But since the use-case for it is not the common case, it probably doesn't matter (and in case, it's possible to hardcode an optimisation if the pattern is "*").
-- Matthieu