diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-03-25 10:05:13 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-25 13:32:07 -0700 |
commit | 4fa5c0591a7b5c71c8ccf71d8401c3337b7867ad (patch) | |
tree | 3d0150dbab33549ae5d4b0702ea60ac8156bcfd7 /t/t4049-diff-stat-count.sh | |
parent | git-merge-one-file: send "ERROR:" messages to stderr (diff) | |
download | tgif-4fa5c0591a7b5c71c8ccf71d8401c3337b7867ad.tar.xz |
merge-one-file: force content conflict for "both sides added" case
Historically, we tried to be lenient to "both sides added, slightly
differently" case and as long as the files can be merged using a
made-up common ancestor cleanly, since f7d24bbefb06 (merge with
/dev/null as base, instead of punting O==empty case, 2005-11-07).
This was later further refined to use a better made-up common file
with fd66dbf5297a (merge-one-file: use empty- or common-base
condintionally in two-stage merge., 2005-11-10), but the spirit has
been the same.
But the original fix in f7d24bbefb06 to avoid punting on "both sides
added" case had a code to unconditionally error out the merge. When
this triggers, even though the content-level merge can be done
cleanly, we end up not saying "content conflict" in the message, but
still issue the error message, showing "ERROR: in <pathname>".
Move that "always fail for add/add conflict" logic a bit higher to
fix this.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4049-diff-stat-count.sh')
0 files changed, 0 insertions, 0 deletions