coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] scripts: git commit message hook: prohibit use of "Signed-off-by


From: Jim Meyering
Subject: [PATCH] scripts: git commit message hook: prohibit use of "Signed-off-by:"
Date: Thu, 30 Aug 2012 13:10:22 +0200

I noticed a lot of Signed-off-by: lines in Stefano's series.
This makes our no-S-o-b policy more apparent:

>From 4f76f9b42ad71df40f1f714f2ecfb1e4b6cd7078 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 30 Aug 2012 13:07:10 +0200
Subject: [PATCH] scripts: git commit message hook: prohibit use of
 "Signed-off-by:"

* scripts/git-hooks/commit-msg: Reject a commit log message that
contains "Signed-off-by:".
---
 scripts/git-hooks/commit-msg | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg
index a5e4090..f867331 100755
--- a/scripts/git-hooks/commit-msg
+++ b/scripts/git-hooks/commit-msg
@@ -125,6 +125,9 @@ sub check_msg($$)
   $buf =~ m!https?://debbugs\.gnu\.org/(?:cgi/bugreport\.cgi\?bug=)?(\d+)!s
     and return "use shorter http://bugs.gnu.org/$1";;

+  $buf =~ /^ *Signed-off-by:/i
+    and return q(do not use "Signed-off-by:");
+
   return '';
 }

--
1.7.12.146.g16d26b1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]