6 # Read from RelNotes and find mergeable topics
10 git rev-list
--parents --first-parent $target..master
>"$tmp"
13 x40
="$x40$x40$x40$x40$x40"
14 x40
="$x40$x40$x40$x40$x40$x40$x40$x40"
15 sed -n -e 's/^ (merge \([0-9a-f]*\) \([^ ]*\) later to maint.*/\1 \2/p' |
18 if ! full_sha1
=$
(git rev-parse
--verify "$sha1")
20 echo >&2 "Not found: $sha1 $topic"
25 if ! git show-ref
--quiet --verify "refs/heads/$topic" ||
26 test $
(git log
--oneline $target..
$full_sha1 |
wc -l) != 0
29 tip
=$full_sha1 topic
=$sha1
30 elif tip
=$
(git rev-parse
--verify "refs/heads/$topic") &&
31 test "$tip" != "$full_sha1"
33 echo >&2 "$tip moved from $sha1"
38 sed -ne "s/^\($x40\) $x40 $tip"'$/\1/p' "$tmp"
41 git show
-s --format='%ar' $fp
43 lg
=$
(git log
--oneline $target..
$tip |
wc -l)
46 echo "$topic # $lg${ago+ ($ago)}${comment+ $comment}"
48 echo "# $topic already merged${ago+ ($ago)}${comment+ $comment}"
57 target
=${2?"-t target???"}
58 git show-ref
--quiet --verify "refs/heads/$target" ||
{
59 echo >&2 "$target: no such branch"
79 sha1
=$
(git rev-parse
--short $topic)
80 echo " (merge $sha1 $topic later to maint)."