From: Junio C Hamano Date: Tue, 19 Jan 2016 18:44:09 GMT Subject: Re: Issue when changing staged files in a pre-commit hook Message-ID: In-Reply-To: Duy Nguyen 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?