3 merge_msg
="Merge branch '\(.*\)'"
4 x40
='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
5 x40
="$x40$x40$x40$x40$x40$x40$x40$x40"
13 "") git merge "$branch" || break ;;
14 ?*) echo >&2 "Eh? $branch $eh"; break ;;
18 git log --pretty=oneline --first-parent "$1" |
23 other=$(git rev-parse --verify "$commit^2") &&
24 branch=$(expr "$msg" : "$merge_msg") &&
25 tip=$(git rev-parse --verify "refs/heads/$branch" 2>/dev/null) &&
26 merged=$(git name-rev --refs="refs/heads/$branch" "$other" 2>/dev/null) &&
27 merged=$(expr "$merged" : "$x40 \(.*\)") &&
28 test "$merged" != undefined || {
29 other=$(git log -1 --pretty='format
:%s
' $other) &&
30 merged="$branch :rebased? $other"
36 series="$merged$LF$series"