From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Subject: [PATCH] Add support for commit.signoff config option
Date: Tue, 28 Nov 2006 12:02:43 +0000 [thread overview]
Message-ID: <200611281202.43394.andyparkins@gmail.com> (raw)
Whether patches require signing off or not is probably a per-project
setting rather than a per-commit setting. Therefore as a convenience to
the user, the commit.signoff setting will automtically add --signoff to
commits.
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
---
git-commit.sh | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/git-commit.sh b/git-commit.sh
index 81c3a0c..c45af10 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -66,9 +66,7 @@ trap '
rm -f "$NEXT_INDEX"
' 0
-################################################################
-# Command line argument parsing and sanity checking
-
+# Init
all=
also=
only=
@@ -85,6 +83,17 @@ signoff=
force_author=
only_include_assumed=
untracked_files=
+
+# Config
+case "$(git-repo-config --get commit.signoff)" in
+1|on|yes|true)
+ signoff=t
+ ;;
+esac
+
+################################################################
+# Command line argument parsing and sanity checking
+
while case "$#" in 0) break;; esac
do
case "$1" in
--
1.4.3.GIT-dirty
next reply other threads:[~2006-11-28 12:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 12:02 Andy Parkins [this message]
2006-11-28 20:17 ` [PATCH] Add support for commit.signoff config option Junio C Hamano
2006-11-29 8:25 ` [PATCH] Add --bool and --int to the OPTIONS section Andy Parkins
2006-11-29 10:09 ` Johannes Schindelin
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=200611281202.43394.andyparkins@gmail.com \
--to=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
/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).