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"
15 git merge "$branch" || break ;;
18 git cherry-pick "$branch" || break ;;
19 *) echo >&2 "Eh? $branch $eh"; break ;;
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"
35 merged="$(git rev-parse --verify "$commit") pick $msg"
38 git log --pretty=oneline --first-parent "$1" |
43 if other=$(git rev-parse -q --verify "$commit^2")
54 series="$merged$LF$series"