Re: Issue when changing staged files in a pre-commit hook

2016-01-22 Thread Duy Nguyen
On Tue, Jan 19, 2016 at 05:44:22PM -0800, Junio C Hamano wrote: > Duy Nguyen writes: > > > On Wed, Jan 20, 2016 at 6:41 AM, Junio C Hamano wrote: > > > >> The only sensible thing we can do at that point in the code after > >> re-reading the index is to make sure that hasn't been changed by the >

Issue when changing staged files in a pre-commit hook

2015-12-28 Thread Niek van der Kooy
I am having an issue where the default commit message is not changed when adding staged files in a pre-commit hook. Please see http://stackoverflow.com/questions/34492779/git-update-git-status-part-of-commit-message-after-pre-commit-hook for details. Is there a workaround / proper way to achieve