Re: is it kosher for pre-commit to change what's staged?
- From
Kevin Ballard <kevin@sb.org>
- Date
- Nov 11, 2010, 22:06 UTC
- Message-ID
- <F0C8038B-0D8C-4A50-9934-9D9CF26FF9F9@sb.org>
- In-Reply-To
- <7vlj4zfrgt.fsf@alter.siamese.dyndns.org>
On Nov 11, 2010, at 2:03 PM, Junio C Hamano wrote:
Show 14 quoted lines
> Joey Hess <joey@kitenet.net> 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