Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Git commit won't add an untracked file given on the command line

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:40

Johannes Schindelin [off-list ref] writes:
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help