Re: Git commit won't add an untracked file given on the command line
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 19, 2008, 01:51 UTC
- Message-ID
- <7vtza4trdp.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <alpine.DEB.1.00.0811190206170.30769@pacific.mpi-cbg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 7 quoted lines
> It may be a traditional wart, but a helpful one. Remember, you can also > say: > > git commit that/directory/ > > I do _not_ want Git to add all untracked (and unignored) files in that > directory automatically.
Yes, very much so.
Although it is conceivable that we may want to change that to behave more like "git add that/directory && git commit that/directory", that is a rather large UI semantics change (even if it could be a useful one) that needs to wait for a major version bump, perhaps in 1.7.0.
I think Mark's update to the documentation is a good thing to have in any case, so I've applied it.