[kernel-team] 28/47: Adapt git-format-patch-for-backport to be Debian-specific again

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Mon Dec 21 00:30:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository kernel-team.

commit a5f4b255dbdeed63bafc569edbef10f30dd33fd5
Author: Ben Hutchings <benh at debian.org>
Date:   Mon Jul 1 04:58:11 2013 +0000

    Adapt git-format-patch-for-backport to be Debian-specific again
    
    Revert changes that were meant for use in stable queue maintenance.
    Rename the script to reflect that this is for Debian only.
    
    svn path=/people/benh/; revision=20316
---
 ...at-patch-for-backport => git-format-patch-for-debian} | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/scripts/benh/git-format-patch-for-backport b/scripts/benh/git-format-patch-for-debian
similarity index 72%
rename from scripts/benh/git-format-patch-for-backport
rename to scripts/benh/git-format-patch-for-debian
index 55976da..bfa0aee 100755
--- a/scripts/benh/git-format-patch-for-backport
+++ b/scripts/benh/git-format-patch-for-debian
@@ -18,19 +18,11 @@
 
 set -e
 git format-patch --subject-prefix='' "$@" | while read name; do
-    printf '%s' "$name"
+    printf '%s\n' "$name"
     mv "$name" "$name".orig
-    awk 'BEGIN { comment = 0; IGNORECASE = 1 }
-FNR == 1 { hash = $2 }
-/^Cc:\s*(.*<)?stable@(vger\.)?kernel\.org/ {
-    gsub("^Cc:\\s*(.*<)?stable@(vger\\.)?kernel\\.org>? *", "");
-    print "", $0 >"/dev/stderr"
-    comment = 1
-    next
-}
+    awk 'FNR == 1 { hash = $2 }
 FNR > 1 { print }
-/^$/ && hash != "" { print "commit", hash, "upstream."; print; hash = "" }
-END { if (!comment) print "" >"/dev/stderr" }' \
-        "$name".orig 2>&1 >"$name"
+/^$/ && hash != "" { print "commit", hash, "upstream."; print; hash = "" }' \
+        "$name".orig > "$name"
     rm "$name".orig
 done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/kernel-team.git



More information about the Kernel-svn-changes mailing list