summaryrefslogtreecommitdiff
path: root/templates/hooks--commit-msg
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-16 17:56:59 -0800
committerJunio C Hamano <gitster@pobox.com>2008-02-16 17:56:59 -0800
commit1ae419cb3902e6cc45538a9673539ed5316fcf30 (patch)
treeb347204ec26b40a72b394f75d357c3278d75bab9 /templates/hooks--commit-msg
parentfef1c4c0a0766b83cfacaf6276d7bd0d1aa9a2e4 (diff)
parent8089c85bcba89464b9b2a32fa948ed85eb367e70 (diff)
downloadgit-1ae419cb3902e6cc45538a9673539ed5316fcf30.tar.gz
Merge branch 'pb/prepare-commit-msg'
* pb/prepare-commit-msg: git-commit: add a prepare-commit-msg hook git-commit: Refactor creation of log message. git-commit: set GIT_EDITOR=: if editor will not be launched git-commit: support variable number of hook arguments
Diffstat (limited to 'templates/hooks--commit-msg')
-rw-r--r--templates/hooks--commit-msg3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/hooks--commit-msg b/templates/hooks--commit-msg
index c5cdb9d7ee..4ef86eb244 100644
--- a/templates/hooks--commit-msg
+++ b/templates/hooks--commit-msg
@@ -9,6 +9,9 @@
# To enable this hook, make this file executable.
# Uncomment the below to add a Signed-off-by line to the message.
+# Doing this in a hook is a bad idea in general, but the prepare-commit-msg
+# hook is more suited to it.
+#
# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"