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"
11 while case "$#,$1" in 0,*) break;; *,-*) ;; *) break ;; esac
15 *) echo "$0 [-n]"; exit 1 ;;
21 if test -z "$accept_rerere"
26 grep -e "^.+" -e "^+." |
27 grep -e "^..<<<<<<<" -e "^..=======" -e "^..>>>>>>>" >/dev/null
31 EDITOR=: git commit -a
41 git merge "$branch" || accept_rerere || exit ;;
44 git cherry-pick "$branch" || exit ;;
45 *) echo >&2 "Eh? $branch $eh"; exit ;;
50 branch=$(expr "$msg" : "$merge_msg") &&
51 tip=$(git rev-parse --verify "refs/heads/$branch" 2>/dev/null) &&
52 merged=$(git name-rev --refs="refs/heads/$branch" "$other" 2>/dev/null) &&
53 merged=$(expr "$merged" : "$x40 \(.*\)") &&
54 test "$merged" != undefined || {
55 other=$(git log -1 --pretty='format
:%s
' $other) &&
56 merged="$branch :rebased? $other"
61 merged="$(git rev-parse --verify "$commit") pick $msg"
64 git log --pretty=oneline --first-parent "$1" |
69 if other=$(git rev-parse -q --verify "$commit^2")
80 series="$merged$LF$series"