[kernel] r19179 - people/benh

Ben Hutchings benh at alioth.debian.org
Fri Jun 22 04:04:46 UTC 2012


Author: benh
Date: Fri Jun 22 04:04:42 2012
New Revision: 19179

Log:
Add script to list which stable series have a given upstream commit

Added:
   people/benh/git-check-in-stable

Added: people/benh/git-check-in-stable
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ people/benh/git-check-in-stable	Fri Jun 22 04:04:42 2012	(r19179)
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# List which stable series have a given upstream commit (or anything
+# else you might want to search for in their commit messages).
+
+set -eu
+
+needle="$1"
+git for-each-ref 'refs/remotes/stable/linux-*' |
+while read commit dummy ref; do
+    version=${ref#refs/remotes/stable/linux-}
+    version=${version%.y}
+    if [ "$version" = 2.6.11 ]; then
+	continue # 2.6.11 is pre-history
+    fi
+    if git rev-list --grep="$needle" v$version..$commit | grep -q .; then
+	echo $version
+    fi
+done



More information about the Kernel-svn-changes mailing list