diff options
author | Elijah Newren <newren@gmail.com> | 2021-07-16 05:22:35 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-20 14:47:39 -0700 |
commit | 5e1ca57a7bbf19ac6c92a4e032ca05345dc622bd (patch) | |
tree | d949f48b3f3d3aa17d4c32229f7e64ad5b4627cd /Documentation/git-archive.txt | |
parent | merge-ort: add a handle_deferred_entries() helper function (diff) | |
download | tgif-5e1ca57a7bbf19ac6c92a4e032ca05345dc622bd.tar.xz |
merge-ort: defer recursing into directories when merge base is matched
When one side of history matches the merge base (including when the
merge base has no entry for the given directory), have
collect_merge_info_callback() defer recursing into the directory. To
ensure those entries are eventually handled, add a call to
handled_deferred_entries() in collect_merge_info() after
traverse_trees() returns.
Note that the condition in collect_merge_info_callback() may look more
complicated than necessary at first glance;
renames->trivial_merges_okay[side] is always true until
handle_deferred_entries() is called, and possible_trivial_merges[side]
is always empty right now (and in the future won't be filled until
handle_deferred_entries() is called). However, when
handle_deferred_entries() calls traverse_trees() for the relevant
deferred directories, those traverse_trees() calls will once again end
up in collect_merge_info_callback() for all the entries under those
subdirectories. The extra conditions are there for such deferred cases
and will be used more as we do more with those variables.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-archive.txt')
0 files changed, 0 insertions, 0 deletions