]> git.ozlabs.org Git - next-scripts/commitdiff
message_helper: ignore old version merges
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 20 Mar 2023 23:04:18 +0000 (10:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 20 Mar 2023 23:04:18 +0000 (10:04 +1100)
message_helper

index d13360a7a22f02e818af672d9779e1f7923228ac..a7c385293c8365b8d6b98cc1bf2676aaaa3a4cbd 100755 (executable)
@@ -28,7 +28,7 @@ cc=( 'Linux Next Mailing List <linux-next@vger.kernel.org>'
        "$@" )
 
 if [ -z "$branch" ]; then
-       branch=$(grep '^Merging ' "$log" | tail -n 1 |
+       branch=$(grep '^Merging ' "$log" | grep -v ' version ' | tail -n 1 |
                sed 's/^Merging \([^ /]*\).*$/\1/')
 fi