diff options
author | Elijah Newren <newren@gmail.com> | 2020-12-13 08:04:24 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-13 14:18:20 -0800 |
commit | 6681ce5cf6a869aa73cfe56d041dce133262587a (patch) | |
tree | 7fef8227e9700f01008f2d680e49691979c76d3f /t/t4018/python-indented-class | |
parent | merge-ort: basic outline for merge_switch_to_result() (diff) | |
download | tgif-6681ce5cf6a869aa73cfe56d041dce133262587a.tar.xz |
merge-ort: add implementation of checkout()
Since merge-ort creates a tree for its output, when there are no
conflicts, updating the working tree and index is as simple as using the
unpack_trees() machinery with a twoway_merge (i.e. doing the equivalent
of a "checkout" operation).
If there were conflicts in the merge, then since the tree we created
included all the conflict markers, then using the unpack_trees machinery
in this manner will still update the working tree correctly. Further,
all index entries corresponding to cleanly merged files will also be
updated correctly by this procedure. Index entries corresponding to
conflicted entries will appear as though the user had run "git add -u"
after the merge to accept all files as-is with conflict markers.
Thus, after running unpack_trees(), there needs to be a separate step
for updating the entries in the index corresponding to conflicted files.
This will be the job for the function record_conflicted_index_entris(),
which will be implemented in a subsequent commit.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/python-indented-class')
0 files changed, 0 insertions, 0 deletions