From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Andy Parkins <andyparkins@gmail.com>,
git@vger.kernel.org, junkio@cox.net
Subject: [PATCH] hooks/pre-commit: add example to add Signed-off-by line to message
Date: Wed, 29 Nov 2006 12:20:08 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.63.0611291219190.30004@wbgn013.biozentrum.uni-wuerzburg.de> (raw)
It is good to have an example of how to supply a template for the
commit message anyway.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
templates/hooks--pre-commit | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/templates/hooks--pre-commit b/templates/hooks--pre-commit
index 723a9ef..931f127 100644
--- a/templates/hooks--pre-commit
+++ b/templates/hooks--pre-commit
@@ -7,6 +7,13 @@
#
# To enable this hook, make this file executable.
+# Uncomment this to add a Signed-off-by line to the message.
+
+# . git-sh-setup
+# git var GIT_AUTHOR_IDENT | \
+# sed -n "s/^\(.*\) [0-9]\+ [-+][0-9]\+$/Signed-off-by: \1/p" \
+# > $GIT_DIR/SQUASH_MSG
+
# This is slightly modified from Andrew Morton's Perfect Patch.
# Lines you introduce should not have trailing whitespace.
# Also check for an indentation that has SP before a TAB.
--
1.4.4.1.gb475
next reply other threads:[~2006-11-29 11:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 11:20 Johannes Schindelin [this message]
2006-12-20 15:54 ` [PATCH] hooks/pre-commit: add example to add Signed-off-by line to message Andy Parkins
2006-12-20 16:04 ` Andy Parkins
2006-12-20 16:18 ` Johannes Schindelin
2006-12-20 17:29 ` Junio C Hamano
2006-12-20 17:37 ` Johannes Schindelin
2006-12-20 17:44 ` Junio C Hamano
2006-12-21 8:26 ` Johannes Schindelin
2006-12-21 9:24 ` [PATCH] hooks/commit-msg: " Andy Parkins
2006-12-22 5:45 ` Junio C Hamano
2006-12-22 9:28 ` Andy Parkins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.63.0611291219190.30004@wbgn013.biozentrum.uni-wuerzburg.de \
--to=johannes.schindelin@gmx.de \
--cc=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).