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.