summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-03-11 14:53:05 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-06 15:52:40 -0700
commit0ce02b362078efe3e3511feb55d2cb5f8e751961 (patch)
tree1f376d19ad3a8db44acbb8748ff64669f09e1e28 /builtin
parentrerere: move code related to "forget" together (diff)
downloadtgif-0ce02b362078efe3e3511feb55d2cb5f8e751961.tar.xz
rerere: split code to call ll_merge() further
The merge() helper function is given an existing rerere ID (i.e. the name of the .git/rr-cache/* subdirectory, and the variant number) that identifies one <preimage, postimage> pair, try to see if the conflicted state in the given path can be resolved by using the pair, and if this succeeds, then update the conflicted path with the result in the working tree. To implement rerere_forget() in the multiple variant world, we'd need a helper to do the "see if a <preimage, postimage> pair cleanly resolves a conflicted state we have in-core" part, without actually touching any file in the working tree, in order to identify which variant(s) to remove. Split the logic to do so into a separate helper function try_merge() out of merge(). Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions