Re: Unexpected behavior when git-adding files in a pre-commit hook then using "git commit -o"

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

 



Michaël Fortin <fortinmike@xxxxxxxxx> writes:

> I’ve encountered unexpected behavior performing a git add from a
> pre-commit hook, followed by performing a commit using the “-o”
> flag,...

As pre-commit is a verification (and rejection) mechanism, not a
mechanism to tweak what is to be commited, it is totally expected
that its behaviour is unspecified when you modify anything in it.

I think I saw a similar confusion posted to the list once in the
past few years.  Perhaps we would need a documentation patch to
clarify this.

Thanks.


--
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]