[kernel-team] 40/47: Add optional second parameter specifying a single stable branch to check

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Mon Dec 21 00:30:52 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 f6b79e943ee1ee0b0c38e86978b0c93f15bf6d37
Author: Ben Hutchings <benh at debian.org>
Date:   Mon May 4 17:41:22 2015 +0000

    Add optional second parameter specifying a single stable branch to check
    
    svn path=/people/benh/; revision=22557
---
 scripts/benh/git-check-in-stable | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/benh/git-check-in-stable b/scripts/benh/git-check-in-stable
index a304960..3d203d4 100755
--- a/scripts/benh/git-check-in-stable
+++ b/scripts/benh/git-check-in-stable
@@ -8,6 +8,7 @@ set -eu
 PAGER=cat
 
 needle="$1"
+only_version="${2:-}"
 git for-each-ref 'refs/remotes/stable/linux-*.y' \
                  'refs/remotes/stable-rt/v*-stable' \
                  'refs/remotes/ubuntu/linux-*.y' |
@@ -16,6 +17,9 @@ while read commit dummy ref; do
     if [ "$version" = 2.6.11 ]; then
 	continue # 2.6.11 is pre-history
     fi
+    if [ -n "$only_version" ] && [ "$version" != "$only_version" ]; then
+	continue
+    fi
     for hash in $(git rev-list --grep="$needle" v$version..$commit); do
 	tag="$(git describe --contains --match="v$version.*" $hash | sed 's/~.*//')"
 	git log --format="$tag: ${hash:0:12} %s" $hash -1

-- 
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