summaryrefslogtreecommitdiff
path: root/t/t6036-recursive-corner-cases.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-04-14 22:35:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-09 22:42:16 (GMT)
commitd694a17986a28bbc19e2a6c32404ca24572e400f (patch)
treed6fe8a53fb759e62dcb10143124ad3a695aed152 /t/t6036-recursive-corner-cases.sh
parented34567c7bb1f3747255ca0301b84abad6d06712 (diff)
downloadgit-d694a17986a28bbc19e2a6c32404ca24572e400f.zip
git-d694a17986a28bbc19e2a6c32404ca24572e400f.tar.gz
git-d694a17986a28bbc19e2a6c32404ca24572e400f.tar.bz2
ll-merge: use a longer conflict marker for internal merge
The primary use of conflict markers is to help the user who resolves the final (outer) merge by hand to show which part came from which branch by separating the blocks of lines apart. When the conflicted parts from a "virtual ancestor" merge created by merge-recursive remains in the common ancestor part in the final result, however, the conflict markers that are the same size as the final merge become harder to see. Increase the conflict marker size slightly for these inner merges so that the markers from the final merge and cruft from internal merge can be distinguished more easily. This would help reduce the common issue that prevents "rerere" from being used on a really complex conflict. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6036-recursive-corner-cases.sh')
-rwxr-xr-xt/t6036-recursive-corner-cases.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t6036-recursive-corner-cases.sh b/t/t6036-recursive-corner-cases.sh
index a86087b..cc1ee6a 100755
--- a/t/t6036-recursive-corner-cases.sh
+++ b/t/t6036-recursive-corner-cases.sh
@@ -217,7 +217,8 @@ test_expect_success 'git detects differently handled merges conflict' '
-L "" \
-L "Temporary merge branch 1" \
merged empty merge-me &&
- test $(git rev-parse :1:new_a) = $(git hash-object merged)
+ sed -e "s/^\([<=>]\)/\1\1\1/" merged >merged-internal &&
+ test $(git rev-parse :1:new_a) = $(git hash-object merged-internal)
'
#