summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-06-18 11:16:56 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-06-18 11:16:56 -0700
commitaf2fc76b4a20e965e19de484b44aca0bef851daa (patch)
treee3de4522bca8f9707bb77911fa9fb64f65467c38
parentMerge branch 'jh/diff-index-line-abbrev' (diff)
parentgit-am: suggest what to do with superfluous patches (diff)
downloadtgif-af2fc76b4a20e965e19de484b44aca0bef851daa.tar.xz
Merge branch 'jk/am-skip-hint'
* jk/am-skip-hint: git-am: suggest what to do with superfluous patches
-rwxr-xr-xgit-am.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-am.sh b/git-am.sh
index 87ffae252b..43ea52c15c 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -726,6 +726,8 @@ do
resolved=
git diff-index --quiet --cached HEAD -- && {
echo "No changes - did you forget to use 'git add'?"
+ echo "If there is nothing left to stage, chances are that something else"
+ echo "already introduced the same changes; you might want to skip this patch."
stop_here_user_resolve $this
}
unmerged=$(git ls-files -u)