summaryrefslogtreecommitdiff
path: root/advice.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-05-09 16:10:51 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-07-09 14:40:02 -0700
commit28ff051268463e93613998a017a10d3de45abbc0 (patch)
tree442aa6c699280c47dc42a8b4762d9638ca7a7af3 /advice.h
parentapply: fall back on three-way merge (diff)
downloadtgif-28ff051268463e93613998a017a10d3de45abbc0.tar.xz
apply: plug the three-way merge logic in
When a patch does not apply to what we have, but we know the preimage the patch was made against, we apply the patch to the preimage to compute what the patch author wanted the result to look like, and attempt a three-way merge between the result and our version, using the intended preimage as the base version. When we are applying the patch using the index, we would additionally need to add the object names of these three blobs involved in the merge, which is not yet done in this step, but we add a field to "struct patch" so that later write-out step can use it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.h')
0 files changed, 0 insertions, 0 deletions