Re: Issue when changing staged files in a pre-commit hook
From: Junio C Hamano <hidden> Date: 2016-06-15 23:07:49
Duy Nguyen [off-list ref] writes:
I think it's the intended behavior.
Yeah, pre-commit was designed for inspecting and rejecting, not for
tweaking and munging. Perhaps "git commit" can be tightened to make
sure that pre-commit that returns successfully did not muck with the
working tree and the index?