diff options
| author | Taylor Blau <me@ttaylorr.com> | 2026-06-21 19:03:07 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-21 16:26:14 -0700 |
| commit | 264efee401e04de50055d1519dda1fbd1e02428f (patch) | |
| tree | 8b147a4002859f1a9ad3e80566523600b27b824d /t/t4013/diff.diff_--patch-with-stat_initial..side | |
| parent | 0a374511064bad27f707cb9f03448fb8aa25791f (diff) | |
pack-objects: extract `record_tree_depth()` helper
Prepare for a subsequent change that needs to record tree depths from a
second call site by factoring the delta-islands tree-depth bookkeeping
out of `show_object()` and into a helper, `record_tree_depth()`.
The helper looks up the object in `to_pack`, returns early when the
object was not added there, computes the depth from the slash count in
the supplied name, and preserves the existing max-depth-wins behavior
when a tree is reached by more than one path.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_--patch-with-stat_initial..side')
0 files changed, 0 insertions, 0 deletions
