]> git.99rst.org Git - git.git/commit
pack-objects: swap 'show_{object,commit}_pack_hint'
authorTaylor Blau <redacted>
Mon, 23 Jun 2025 22:32:27 +0000 (18:32 -0400)
committerJunio C Hamano <redacted>
Mon, 23 Jun 2025 22:41:37 +0000 (15:41 -0700)
commit63195f013b845b02063b21162fa60fcfb8b631ef
treeb5ad39100621f7a0e96fea057a242ecdb0073d2d
parent8ed5d87bdd03469249373dead5d12ff4590bcccc
pack-objects: swap 'show_{object,commit}_pack_hint'

show_commit_pack_hint() has heretofore been a noop, so its position
within its compilation unit only needs to appear before its first use.

But the following commit will sometimes have `show_commit_pack_hint()`
call `show_object_pack_hint()`, so reorder the former to appear after
the latter to minimize the code movement in that patch.

Suggested-by: Elijah Newren <redacted>
Signed-off-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/pack-objects.c
git clone https://git.99rst.org/PROJECT