diff options
author | Derrick Stolee <stolee@gmail.com> | 2024-06-28 12:43:22 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-28 12:32:11 -0700 |
commit | b746a85d9a0d2384d3219b3b53593ccb880f3124 (patch) | |
tree | 91afbc9bc98b4e5fddae9820563dbb6052377a65 /replace-object.c | |
parent | 532e21698634b4aa305981a6243bc8e3bd795ae1 (diff) |
sparse-index: refactor path_found()
In advance of changing the behavior of path_found(), take all of the
intermediate data values and group them into a single struct. This
simplifies the method prototype as well as the initialization. Future
changes can be made directly to the struct and method without changing
the callers with this approach.
Note that the clear_path_found_data() method is currently empty, as
there is nothing to free. This method is a placeholder for future
changes that require a non-trivial implementation. Its stub is created
now so consumers could call it now and not change in future changes.
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'replace-object.c')
0 files changed, 0 insertions, 0 deletions