1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-06 09:13:01 +01:00
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 Add new programs and stamp file to .gitignore. 2005-10-14 17:13:49 -07:00
branches-- Redo the templates generation and installation. 2005-08-06 13:49:26 -07:00
hooks--applypatch-msg sample hooks template. 2006-02-26 15:16:41 -08:00
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 Add commit hook and make the verification customizable. 2005-08-19 16:23:31 -07:00
hooks--post-update Install sample hooks 2005-08-03 16:27:38 -07:00
hooks--pre-applypatch sample hooks template. 2006-02-26 15:16:41 -08:00
hooks--pre-commit pre-commit hook: complain about conflict markers. 2006-04-19 15:37:40 -07:00
hooks--pre-rebase rebase: allow a hook to refuse rebasing. 2006-02-13 00:17:33 -08:00
hooks--update templates/hooks--update: replace diffstat calls with git diff --stat 2006-07-08 03:11:16 -07:00
info--exclude Redo the templates generation and installation. 2005-08-06 13:49:26 -07:00
Makefile Fix installation of templates on ancient systems. 2006-08-02 00:27:18 -07:00
this--description Redo the templates generation and installation. 2005-08-06 13:49:26 -07:00