From: Nicolas Pitre Date: Fri, 08 Dec 2006 19:45:41 GMT Subject: Re: Documentation/git-commit.txt Message-ID: In-Reply-To: <7vfybqi3r1.fsf@assigned-by-dhcp.cox.net> 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.