summaryrefslogtreecommitdiff
path: root/git-am.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-14 17:02:30 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-14 17:02:30 -0700
commitaf3d7a6a729f0763ca0f93b5d1ef33d571ef4e8d (patch)
treea73b8a45935ae6c307995379bbdd58661731479e /git-am.sh
parentMerge branch 'se/rev-parse' into next (diff)
parentMake git rebase interactive help match documentation. (diff)
downloadtgif-af3d7a6a729f0763ca0f93b5d1ef33d571ef4e8d.tar.xz
Merge branch 'se/rebase' into next
* se/rebase: Make git rebase interactive help match documentation.
Diffstat (limited to 'git-am.sh')
-rwxr-xr-xgit-am.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/git-am.sh b/git-am.sh
index 507ae4dcb9..33f208cb0b 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