]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/stack: inline `stack_compact_range_stats()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 23 Aug 2024 14:12:32 +0000 (16:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Aug 2024 15:04:46 +0000 (08:04 -0700)
commita52bac9ac0c6eac60244e902e4b65e9ddab066aa
tree92dee44f35f6d2cfc2f7cc64b49029c297613b56
parentafdafade1acc9f59d11a453aa9c974fcb327830f
reftable/stack: inline `stack_compact_range_stats()`

The only difference between `stack_compact_range_stats()` and
`stack_compact_range()` is that the former updates stats on failure,
whereas the latter doesn't. There are no callers anymore that do not
want their stats updated though, making the indirection unnecessary.

Inline the stat updates into `stack_compact_range()`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/stack.c