2011-02-06 18:43:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010 Junio C Hamano.
|
|
|
|
#
|
|
|
|
|
|
|
|
. git-sh-setup
|
|
|
|
|
|
|
|
case "$action" in
|
|
|
|
continue)
|
|
|
|
git am --resolved --3way --resolvemsg="$resolvemsg" &&
|
|
|
|
move_to_original_branch
|
|
|
|
exit
|
|
|
|
;;
|
|
|
|
skip)
|
|
|
|
git am --skip -3 --resolvemsg="$resolvemsg" &&
|
|
|
|
move_to_original_branch
|
|
|
|
exit
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
test -n "$rebase_root" && root_flag=--root
|
|
|
|
|
|
|
|
git format-patch -k --stdout --full-index --ignore-if-in-upstream \
|
|
|
|
--src-prefix=a/ --dst-prefix=b/ \
|
|
|
|
--no-renames $root_flag "$revisions" |
|
|
|
|
git am $git_am_opt --rebasing --resolvemsg="$resolvemsg" &&
|
|
|
|
move_to_original_branch
|
|
|
|
ret=$?
|
2011-02-06 18:43:53 +00:00
|
|
|
test 0 != $ret -a -d "$state_dir" && write_basic_state
|
2011-02-06 18:43:48 +00:00
|
|
|
exit $ret
|