summaryrefslogtreecommitdiff
path: root/tests/diff/diffiter.c
diff options
context:
space:
mode:
authorPierre-Olivier Latour <pol@mac.com>2015-06-15 11:14:40 -0700
committerPierre-Olivier Latour <pol@mac.com>2015-06-23 07:48:26 -0700
commit8d8a2eefef0fbb42d7a7fb8f88ca7481515e2737 (patch)
tree20f301bf35e0e05fb0f99ce86637608f25775c8d /tests/diff/diffiter.c
parent0c34fa5094ba624ebe398d1b154fd27c207108cb (diff)
downloadlibgit2-8d8a2eefef0fbb42d7a7fb8f88ca7481515e2737.tar.gz
Fixed GIT_DELTA_CONFLICTED not returned in some cases
If an index entry for a file that is not in HEAD is in conflicted state, when diffing HEAD with the index, the status field of the corresponding git_diff_delta was incorrectly reported as GIT_DELTA_ADDED instead of GIT_DELTA_CONFLICTED. This was due to handle_unmatched_new_item() initially setting the status to GIT_DELTA_CONFLICTED but then overriding it later with GIT_DELTA_ADDED.
Diffstat (limited to 'tests/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions