diff options
author | Derrick Stolee <stolee@gmail.com> | 2025-08-25 12:49:57 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-08-25 09:01:17 -0700 |
commit | 93afe9b060dedd94c20feb8da553cef0e4301176 (patch) | |
tree | a7409b86f9cee59354d30ac6eedb3fc06f9a3285 /commit-graph.c | |
parent | febb9d87dfea2f9e3e4c438d025506a5f18f6198 (diff) |
path-walk: create initializer for path lists
The previous change fixed a bug in 'git repack -adf --path-walk' that
was due to an update to how path lists are initialized and missing some
important cases when processing the pending objects.
This change takes the three critical places where path lists are
initialized and combines them into a static method. This simplifies the
callers somewhat while also helping to avoid a missed update in the
future.
The other places where a path list (struct type_and_oid_list) is
initialized is for the following "fixed" lists:
* Tag objects.
* Commit objects.
* Root trees.
* Tagged trees.
* Tagged blobs.
These lists are created and consumed in different ways, with only the
root trees being passed into the logic that cares about the
"maybe_interesting" bit. It is appropriate to keep these uses separate.
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions