aboutsummaryrefslogtreecommitdiff
path: root/combine-diff.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2014-08-12 17:03:18 -0700
committerJunio C Hamano <gitster@pobox.com>2014-08-25 15:17:34 -0700
commit6a143aa2b23b97fa8363e2f4fd16f23b4c5b104d (patch)
tree6b8755ddc6c9210f39a5f477c41d859e9114d3c5 /combine-diff.c
parent6c1db1b38886f70165cb9f5822b1a2e99a2c331b (diff)
downloadgit-6a143aa2b23b97fa8363e2f4fd16f23b4c5b104d.tar.gz
git-6a143aa2b23b97fa8363e2f4fd16f23b4c5b104d.tar.xz
checkout -m: attempt merge when deletion of path was staged
twoway_merge() is missing an o->gently check in the case where a file that needs to be modified is missing from the index but present in the old and new trees. As a result, in this case 'git checkout -m' errors out instead of trying to perform a merge. Fix it by checking o->gently. While at it, inline the o->gently check into reject_merge to prevent future call sites from making the same mistake. Noticed by code inspection. The test for the motivating case was added by JC. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'combine-diff.c')
0 files changed, 0 insertions, 0 deletions