gcc-git: Add prepare-commit-msg hook.
authorJason Merrill <jason@redhat.com>
Fri, 22 May 2020 22:40:35 +0000 (18:40 -0400)
committerMartin Liska <mliska@suse.cz>
Tue, 26 May 2020 06:38:24 +0000 (08:38 +0200)
commit757dbb59c1f2cd88c84a6dc7dc038e4da750b035
treeb23b29e0cb81510b99e04b750ae88adb70a0a4e0
parentb8e5f22671e900d9c7757f6289cc10d0c4fd0f03
gcc-git: Add prepare-commit-msg hook.

This patch introduces a prepare-commit-msg hook that appends a ChangeLog
skeleton to a commit message when the GCC_FORCE_MKLOG environment variable
is set, and a 'git commit-mklog' command set that variable while running
'git commit'.

contrib/ChangeLog:

* prepare-commit-msg: New file.
* gcc-git-customization.sh: Install it.  Add commit-mklog alias.
* mklog.py: Add new option -c which appends
to a ChangeLog file.
contrib/gcc-git-customization.sh
contrib/mklog.py
contrib/prepare-commit-msg [new file with mode: 0755]