diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-04-14 15:35:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-09 15:42:16 -0700 |
commit | d694a17986a28bbc19e2a6c32404ca24572e400f (patch) | |
tree | d6fe8a53fb759e62dcb10143124ad3a695aed152 /t/t6036-recursive-corner-cases.sh | |
parent | ed34567c7bb1f3747255ca0301b84abad6d06712 (diff) | |
download | git-d694a17986a28bbc19e2a6c32404ca24572e400f.tar.gz |
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-x | t/t6036-recursive-corner-cases.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t6036-recursive-corner-cases.sh b/t/t6036-recursive-corner-cases.sh index a86087be95..cc1ee6aa7f 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) ' # |