]> git.ipfire.org Git - thirdparty/gcc.git/commit
mklog: handle Signed-off-by, minor cleanup
authorMarc Poulhiès <dkm@kataplop.net>
Thu, 6 Jul 2023 20:40:57 +0000 (22:40 +0200)
committerMarc Poulhiès <dkm@kataplop.net>
Mon, 4 Sep 2023 19:43:36 +0000 (21:43 +0200)
commitf3f6ff7b16861cd0651eccff14689536550762ae
tree875deb53da88243e834383bf1db5ead4e2875100
parenta338c5f6114f3b9f2ed067bc7738b405091a76ce
mklog: handle Signed-off-by, minor cleanup

Consider Signed-off-by lines as part of the ending of the initial
commit to avoid having these in the middle of the log when the
changelog part is injected after.

This is particularly usefull with:

 $ git gcc-commit-mklog --amend -s

that can be used to create the changelog and add the Signed-off-by line.

Also applies most of the shellcheck suggestions on the
prepare-commit-msg hook.

contrib/ChangeLog:

* mklog.py: Leave SOB lines after changelog.
* prepare-commit-msg: Apply most shellcheck suggestions.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
contrib/mklog.py
contrib/prepare-commit-msg