summaryrefslogtreecommitdiff
path: root/Reintegrate
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-02 17:19:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-04-02 17:19:54 (GMT)
commit6e916ab43913c1703eca314d15016761b5285616 (patch)
tree80beb1b990bfc5673d067640cfbcbe1181573cf8 /Reintegrate
parent411b5ebe488162e45606a10b7371c75e6e55e443 (diff)
downloadgit-6e916ab43913c1703eca314d15016761b5285616.zip
git-6e916ab43913c1703eca314d15016761b5285616.tar.gz
git-6e916ab43913c1703eca314d15016761b5285616.tar.bz2
Reintegrate: only detect conflict markers in conflicted files
Otherwise we would misidentify new sections in documentation set marked with ======= as conflict markers.
Diffstat (limited to 'Reintegrate')
-rwxr-xr-xReintegrate5
1 files changed, 3 insertions, 2 deletions
diff --git a/Reintegrate b/Reintegrate
index cb75f12..dfc5184 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