rev-list: allow -n<n> as shorthand for --max-count=<n>
[git.git] / git-merge.sh
index 0a158ef..92e5a65 100755 (executable)
@@ -301,5 +301,13 @@ then
        "Automatic merge went well; stopped before committing as requested"
        exit 0
 else
+       {
+           echo '
+Conflicts:
+'
+               git ls-files --unmerged |
+               sed -e 's/^[^   ]*      /       /' |
+               uniq
+       } >>"$GIT_DIR/MERGE_MSG"
        die "Automatic merge failed; fix up by hand"
 fi