git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-commit: Having $GIT_COMMITTER_NAME implies -s
@ 2005-11-16 23:38 Andreas Ericsson
  2005-11-17  4:28 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Ericsson @ 2005-11-16 23:38 UTC (permalink / raw)
  To: git


I've been trying, in vain, to tell my colleagues to use the -s flag.
With this patch I can at least fix up their .profile's myself.

Signed-off-by: Andreas Ericsson <ae@op5.se>

---

 git-commit.sh |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

applies-to: a2fe76123d6f5b835d3312a70a02ed4d07e25f8e
d32c78570e25a9718721937b1ee9051e950ad1fd
diff --git a/git-commit.sh b/git-commit.sh
index 41955e8..ff9502c 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -134,8 +134,7 @@ then
 	cat "$GIT_DIR/MERGE_MSG"
 fi | git-stripspace >"$GIT_DIR"/COMMIT_EDITMSG
 
-case "$signoff" in
-t)
+if [ "$signoff" = t -o "$GIT_COMMITTER_NAME" ]; then
 	{
 		echo
 		git-var GIT_COMMITTER_IDENT | sed -e '
@@ -143,8 +142,7 @@ t)
 			s/^/Signed-off-by: /
 		'
 	} >>"$GIT_DIR"/COMMIT_EDITMSG
-	;;
-esac
+fi
 
 if [ -f "$GIT_DIR/MERGE_HEAD" ]; then
 	echo "#"
---
0.99.9.GIT

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] git-commit: Having $GIT_COMMITTER_NAME implies -s
  2005-11-16 23:38 [PATCH] git-commit: Having $GIT_COMMITTER_NAME implies -s Andreas Ericsson
@ 2005-11-17  4:28 ` Junio C Hamano
  2005-11-17  5:27   ` H. Peter Anvin
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2005-11-17  4:28 UTC (permalink / raw)
  To: Andreas Ericsson; +Cc: git

I am not so sure about this.  A Signed-off-by line used in the
kernel and git projects has a specific meaning; you've read
SubmittingPatches in either projects, have'nt you?

I do work on a machine from which I make commits to both git
project and my day-job work project.  I do not necessarily want
to add Signed-off-by line in commits I make for the latter.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] git-commit: Having $GIT_COMMITTER_NAME implies -s
  2005-11-17  4:28 ` Junio C Hamano
@ 2005-11-17  5:27   ` H. Peter Anvin
  0 siblings, 0 replies; 3+ messages in thread
From: H. Peter Anvin @ 2005-11-17  5:27 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Andreas Ericsson, git

Junio C Hamano wrote:
> I am not so sure about this.  A Signed-off-by line used in the
> kernel and git projects has a specific meaning; you've read
> SubmittingPatches in either projects, have'nt you?
> 
> I do work on a machine from which I make commits to both git
> project and my day-job work project.  I do not necessarily want
> to add Signed-off-by line in commits I make for the latter.
> 

More importantly, it's vital that a Signed-off-by: line is always added 
with explicit awareness of the signer.

	-hpa

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-17  5:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-16 23:38 [PATCH] git-commit: Having $GIT_COMMITTER_NAME implies -s Andreas Ericsson
2005-11-17  4:28 ` Junio C Hamano
2005-11-17  5:27   ` H. Peter Anvin

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 NNTP newsgroup(s).