X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-am.sh;fp=git-am.sh;h=33f208cb0b7a7d7bad264b41443a966a567156ff;hb=cc120056a881101326488e3c5c2d3af2ce3a8de6;hp=507ae4dcb9964e63143661392d7a10d7da4ef33e;hpb=975bf9cf5ad5d440f98f464ae8124609a4835ce1;p=git.git diff --git a/git-am.sh b/git-am.sh index 507ae4dc..33f208cb 100755 --- a/git-am.sh +++ b/git-am.sh @@ -15,6 +15,10 @@ stop_here () { } stop_here_user_resolve () { + if [ -n "$resolvemsg" ]; then + echo "$resolvemsg" + stop_here $1 + fi cmdline=$(basename $0) if test '' != "$interactive" then @@ -121,7 +125,7 @@ fall_back_3way () { } prec=4 -dotest=.dotest sign= utf8= keep= skip= interactive= resolved= binary= ws= +dotest=.dotest sign= utf8= keep= skip= interactive= resolved= binary= ws= resolvemsg= while case "$#" in 0) break;; esac do @@ -157,6 +161,9 @@ do --whitespace=*) ws=$1; shift ;; + --resolvemsg=*) + resolvemsg=$(echo "$1" | sed -e "s/^--resolvemsg=//"); shift ;; + --) shift; break ;; -*) @@ -185,7 +192,7 @@ then else # Make sure we are not given --skip nor --resolved test ",$skip,$resolved," = ,,, || - die "we are not resuming." + die "Resolve operation not in progress, we are not resuming." # Start afresh. mkdir -p "$dotest" || exit