Re: is it kosher for pre-commit to change what's staged?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 11, 2010, at 2:03 PM, Junio C Hamano wrote:

> Joey Hess <joey@xxxxxxxxxxx> 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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]