diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-07-13 07:52:07 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-13 08:13:16 -0700 |
| commit | e86fe6fe62d0fb5b54a1afed6166d3e27d28f081 (patch) | |
| tree | 086ce23a7567e68d4685199ed9ffeb830fc9bfe0 /t/t4013/diff.diff_initial..side | |
| parent | 3f8696804331ee9dacf49fa0c6fec4300a37b709 (diff) | |
builtin/gc: extract object database optimizations into separate function
Extract the object database optimization logic from `cmd_gc()` into a
new `maintenance_task_odb()` helper function. This is a pure refactoring
with no intended functional change.
Note that the message that notifies the user about too many loose
objects is moved into the new function, as well. It is inherently an
implementation detail of how the "files" source works, and as a
consequence we'll move it around in a later commit, as well. This
reordering means that the warning may now be printed at a different
point in time, but it's not expected that this will have any practical
implications.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
