]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/gc.c
maintenance: swap method locations
authorDerrick Stolee <derrickstolee@github.com>
Thu, 10 Aug 2023 20:39:44 +0000 (20:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Aug 2023 21:04:16 +0000 (14:04 -0700)
commitf44d7d00e5f71ca5f232bca3793dfafd98329e0d
treee05c5ad493798a2f35f3717eeb129a2fda300849
parent9b433990573f02d2078d5a2ee4c227cedd6254bd
maintenance: swap method locations

The systemd_timer_write_unit_templates() method writes a single template
that is then used to start the hourly, daily, and weekly schedules with
systemd.

However, in order to schedule systemd maintenance on a given minute,
these templates need to be replaced with specific schedules for each of
these jobs.

Before modifying the schedules, move the writing method above the
systemd_timer_enable_unit() method, so we can write a specific schedule
for each unit.

The diff is computed smaller by showing systemd_timer_enable_unit() and
systemd_timer_delete_units()  move instead of
systemd_timer_write_unit_templates() and
systemd_timer_delete_unit_templates().

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c