summaryrefslogtreecommitdiff
path: root/git-am.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-04-28 16:57:32 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-04-28 16:57:32 -0700
commit89719209f48fe7d9694710795b1ec1d5fd7ebfc0 (patch)
tree4c264196192c6aa0b3a60d337f43ec082add3293 /git-am.sh
parentMerge branch 'fix' (diff)
parentFix trivial typo in git-log man page. (diff)
downloadtgif-89719209f48fe7d9694710795b1ec1d5fd7ebfc0.tar.xz
Merge branch 'fix'
* fix: Fix trivial typo in git-log man page. Properly render asciidoc "callouts" in git man pages. Fix up remaining man pages that use asciidoc "callouts". Update the git-branch man page to include the "-r" option, annotate: display usage information if no filename was given annotate: fix warning about uninitialized scalar git-am --resolved: more usable error message.
Diffstat (limited to 'git-am.sh')
-rwxr-xr-xgit-am.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-am.sh b/git-am.sh
index eab4aa891e..872145b92d 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -376,6 +376,13 @@ do
echo "No changes - did you forget update-index?"
stop_here $this
fi
+ unmerged=$(git-ls-files -u)
+ if test -n "$unmerged"
+ then
+ echo "You still have unmerged paths in your index"
+ echo "did you forget update-index?"
+ stop_here $this
+ fi
apply_status=0
;;
esac