From: Kevin Ballard Date: Thu, 11 Nov 2010 22:06:53 GMT Subject: Re: is it kosher for pre-commit to change what's staged? Message-ID: In-Reply-To: <7vlj4zfrgt.fsf@alter.siamese.dyndns.org> On Nov 11, 2010, at 2:03 PM, Junio C Hamano wrote: > Joey Hess writes: > >> ... The >> pre-commit script there stores some metadata about files that git >> usually doesn't track, by putting it in a dotfile, and stages that >> dotfile for commit. Which currently works fine, except for the minor >> problem that the user doesn't see the dotfile listed in the commit >> message. > > I am hearing "list of files in the commit message", and am getting > confused. As far as I know we don't store such a list in the commit > message. > > Puzzled. I believe he means in the # comments at the bottom of the editor. They contain the output of `git status` as a reminder of what you're committing. -Kevin Ballard