Subject: Re: 'git commit' ignoring args?

From: Andreas Ericsson <[email-masked]>
Date: Tue, 29 Nov 2005 00:02:04 +0100

Jeff Garzik wrote:
> 
> With the latest git as of this writing, executing
> 
>     git commit Makefile stylesheet.xsl
> 
> results in an attempt to commit the above files, and also another file 
> book.xml.  book.xml is modified, but I do not wish to check it in at 
> this time, so I did not list it as an argument to 'git commit'.
> 

The index has been updated to match the file on disk somehow (perhaps 
you did 'git add book.xml'?). You can un-mark it with

	git reset HEAD

which is equivalent to

	git read-tree --reset HEAD

so long as you're operating on HEAD.

-- 
Andreas Ericsson                   [email-masked]
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231