|
|
|
|
|
by thisdougb
441 days ago
|
|
I did look at modifying the merge commit message, but I couldn't figure out how to accurately detect a merge commit. Having re-looked, I just found 'git rev-parse --verify MERGE_HEAD' which may help here. Time to do some testing. It would be good to clean up and standardise the commit msg itself too. Thanks. |
|
The prepare-commit-msg hook is the one. One of the hook args is the type of commit (merge, squash, etc). And the merge commit msg files exist (SQUASH_MSG, MERGE_MSG) so my original logic all works.