git/templates
Andy Parkins 59f3e25480 hooks/commit-msg: add example to add Signed-off-by line to message
After checking to see if the commit message already has the target
signed-off-by (for example in --amend commits), this patch generates a
signed off by line from the repository owner and adds it to the commit
message.

Based on Johannes Schindelin's earlier patch to perform the same
function.

Originally, this was done in the pre-commit hook but Junio pointed out
that the commit-msg hook allows the message to be edited.  This has the
aditional advantage that the commit-msg hook gets passed the name of the
message file as a parameter, so it doesn't have to figure out GIT_DIR for
itself.

Signed-off-by: Andy Parkins <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-12-26 12:25:34 -08:00
..
.gitignore
Makefile Fix installation of templates on ancient systems. 2006-08-02 00:27:18 -07:00
branches--
hooks--applypatch-msg
hooks--commit-msg hooks/commit-msg: add example to add Signed-off-by line to message 2006-12-26 12:25:34 -08:00
hooks--post-commit
hooks--post-update
hooks--pre-applypatch
hooks--pre-commit
hooks--pre-rebase
hooks--update templates/hooks--update: replace diffstat calls with git diff --stat 2006-07-08 03:11:16 -07:00
info--exclude
this--description