Thread (7 messages) flat view 7 messages, 5 authors, 2016-08-11

Re: Documentation/git-commit.txt

From: Nicolas Pitre <hidden>
Date: 2016-08-11 20:13:03

On Fri, 8 Dec 2006, Junio C Hamano wrote:
By the way, I have been wondering if the --only variant of the
command should also add untracked files to the index.  That is:

	$ git commit foo.c '*.h'

currently barfs if foo.c is not tracked, and/or there is no
tracked header files.  We could instead run git-update-index
--add on them.
That would be a good thing indeed.
Incidentally, this would make this sequence possible:

	$ tar xf /var/tmp/foo.tar ;# extract tarball here.
        $ git init-db
        $ git commit -m 'initial import' .
... making the UI even more consistent.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help