[kernel] r22557 - people/benh
Ben Hutchings
benh at moszumanska.debian.org
Mon May 4 17:41:23 UTC 2015
Author: benh
Date: Mon May 4 17:41:22 2015
New Revision: 22557
Log:
Add optional second parameter specifying a single stable branch to check
Modified:
people/benh/git-check-in-stable
Modified: people/benh/git-check-in-stable
==============================================================================
--- people/benh/git-check-in-stable Mon May 4 06:11:20 2015 (r22556)
+++ people/benh/git-check-in-stable Mon May 4 17:41:22 2015 (r22557)
@@ -8,6 +8,7 @@
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 @@
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
More information about the Kernel-svn-changes
mailing list