From 6e916ab43913c1703eca314d15016761b5285616 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 2 Apr 2009 10:19:54 -0700 Subject: [PATCH] Reintegrate: only detect conflict markers in conflicted files Otherwise we would misidentify new sections in documentation set marked with ======= as conflict markers. --- Reintegrate | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Reintegrate b/Reintegrate index cb75f128fd..dfc5184226 100755 --- a/Reintegrate +++ b/Reintegrate @@ -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 -- 2.11.4.GIT