Skip to content

Commit af2fc76

Browse files
committed
Merge branch 'jk/am-skip-hint'
* jk/am-skip-hint: git-am: suggest what to do with superfluous patches
2 parents 18fd805 + 05bdcfe commit af2fc76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-am.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,8 @@ do
726726
resolved=
727727
git diff-index --quiet --cached HEAD -- && {
728728
echo "No changes - did you forget to use 'git add'?"
729+
echo "If there is nothing left to stage, chances are that something else"
730+
echo "already introduced the same changes; you might want to skip this patch."
729731
stop_here_user_resolve $this
730732
}
731733
unmerged=$(git ls-files -u)

0 commit comments

Comments
 (0)