]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Reintegrate: only detect conflict markers in conflicted files
authorJunio C Hamano <gitster@pobox.com>
Thu, 2 Apr 2009 17:19:54 +0000 (10:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Apr 2009 17:19:54 +0000 (10:19 -0700)
Otherwise we would misidentify new sections in documentation set
marked with ======= as conflict markers.

Reintegrate

index cb75f128fda8533a2682b8cc80270355778fa423..dfc51842260a0356c74667a1534539cbd0ffbc7d 100755 (executable)
@@ -22,8 +22,9 @@ accept_rerere () {
        then
                return 1
        fi
-       if git diff HEAD |
-               grep -e "^+<<<<<<<" -e "^+=======" -e "^+>>>>>>>" >/dev/null
+       if git diff |
+          grep -e "^.+" -e "^+." |
+          grep -e "^..<<<<<<<" -e "^..=======" -e "^..>>>>>>>" >/dev/null
        then
                return 1
        else