From: "Sean" <seanlkml@sympatico.ca>
To: "Petr Baudis" <pasky@ucw.cz>
Cc: "GIT Mailing List" <git@vger.kernel.org>
Subject: Commit template
Date: Sun, 8 May 2005 15:07:36 -0400 (EDT) [thread overview]
Message-ID: <1965.10.10.10.24.1115579256.squirrel@linux1> (raw)
[-- Attachment #1: Type: text/plain, Size: 416 bytes --]
Hi Petr,
This adds the ability to have a per repository commit template. Create a
.git/commit.form file containg "CG: " and other lines and it will be used
in place of the regular top 3 lines. This is kind of handy so that you
can include your signed-off-by: with your email etc.
cg-commit | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
Sean
P.s. Can't inline patches with this mailer.
[-- Attachment #2: cg-commit.patch --]
[-- Type: application/octet-stream, Size: 896 bytes --]
cg-commit: needs update
Index: cg-commit
===================================================================
--- b2ce852fd77209e112e0b53866ca7004e9b0879f/cg-commit (mode:100755)
+++ uncommitted/cg-commit (mode:100755)
@@ -67,9 +67,14 @@
LOGMSG=$(mktemp -t gitci.XXXXXX)
LOGMSG2=$(mktemp -t gitci2.XXXXXX)
-echo CG: ---------------------------------------------------------- >>$LOGMSG
-echo CG: Lines beggining with CG: will be automatically removed >>$LOGMSG
-echo CG: >>$LOGMSG
+if [ -e .git/commit.form ]; then
+ cat .git/commit.form >>$LOGMSG
+else
+ {
+ echo "CG: ----------------------------------------------------------"
+ echo "CG: Lines beggining with CG: will be automatically removed"
+ echo "CG:"; } >>$LOGMSG
+fi
if [ ! "$ignorecache" ]; then
if [ ! "${commitfiles[*]}" ]; then
echo 'Nothing to commit.' >&2
next reply other threads:[~2005-05-08 19:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-08 19:07 Sean [this message]
2005-05-08 19:16 ` Commit template Marcel Holtmann
2005-05-08 19:20 ` Sean
2005-05-08 19:30 ` Marcel Holtmann
2005-05-08 19:57 ` Sean
2005-05-08 20:03 ` Marcel Holtmann
2005-05-08 20:06 ` Sean
2005-05-08 20:17 ` Petr Baudis
2005-05-08 20:36 ` Marcel Holtmann
2005-05-08 20:40 ` Petr Baudis
2005-05-08 21:09 ` Marcel Holtmann
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1965.10.10.10.24.1115579256.squirrel@linux1 \
--to=seanlkml@sympatico.ca \
--cc=git@vger.kernel.org \
--cc=pasky@ucw.cz \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.