Patrick Steinhardt
7bf3057d9c
builtin/receive-pack: convert to use git-maintenance(1)
...
In 850b6edefa (auto-gc: extract a reusable helper from "git fetch",
2020-05-06), we have introduced a helper function `run_auto_gc()` that
kicks off `git gc --auto`. The intent of this function was to pass down
the "--quiet" flag to git-gc(1) as required without duplicating this at
all callsites. In 7c3e9e8cfb (auto-gc: pass --quiet down from am,
commit, merge and rebase, 2020-05-06) we then converted callsites that
need to pass down this flag to use the new helper function. This has the
notable omission of git-receive-pack(1), which is the only remaining
user of `git gc --auto` that sets up the proccess manually. This is
probably because it unconditionally passes down the `--quiet` flag and
thus didn't benefit much from the new helper function.
In a95ce12430 (maintenance: replace run_auto_gc(), 2020-09-17) we then
replaced `run_auto_gc()` with `run_auto_maintenance()` which invokes
git-maintenance(1) instead of git-gc(1). This command is the modern
replacement for git-gc(1) and is both more thorough and also more
flexible because administrators can configure which tasks exactly to run
during maintenance.
But due to git-receive-pack(1) not using `run_auto_gc()` in the first
place it did not get converted to use git-maintenance(1) like we do
everywhere else now. Address this oversight and start to use the newly
introduced function `prepare_auto_maintenance()`. This will also make it
easier for us to adapt this code together with all the other callsites
that invoke auto-maintenance in the future.
This removes the last internal user of `git gc --auto`.
Signed-off-by: Patrick Steinhardt <ps@pks.im >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2024-04-17 08:42:26 -07:00
..
2024-04-17 08:42:26 -07:00
2024-02-08 16:22:01 -08:00
2022-09-07 09:46:05 -07:00
2023-10-09 12:06:29 -07:00
2024-02-22 16:14:53 -08:00
2024-01-02 09:24:48 -08:00
2023-04-05 14:18:53 -07:00
2023-04-05 21:37:45 -07:00
2023-04-24 15:16:31 -07:00
2022-10-21 11:39:38 -07:00
2022-09-23 10:01:07 -07:00
2024-02-08 16:22:11 -08:00
2023-10-30 07:09:55 +09:00
2021-11-09 09:39:11 -08:00
2022-06-13 11:57:03 -07:00
2023-10-09 12:06:44 -07:00
2023-12-26 11:06:57 -08:00
2023-05-05 14:28:03 -07:00
2024-01-08 13:36:23 -08:00
2023-10-09 12:06:29 -07:00
2023-12-15 13:01:51 -08:00
2023-11-02 16:53:27 +09:00
2022-10-13 09:32:57 -07:00
2023-10-09 12:06:44 -07:00
2023-10-09 12:04:21 -07:00
2023-01-13 11:58:51 -08:00
2024-02-13 14:44:51 -08:00
2023-12-26 11:06:55 -08:00
2024-01-08 10:06:05 -08:00
2023-12-26 11:06:55 -08:00
2023-03-19 15:03:12 -07:00
2023-10-09 12:46:33 -07:00
2023-10-09 12:06:44 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:47 -07:00
2023-10-09 12:06:44 -07:00
2024-01-02 13:51:30 -08:00
2023-01-13 09:55:45 -08:00
2023-11-02 16:53:25 +09:00
2024-01-02 09:24:48 -08:00
2022-09-07 09:46:07 -07:00
2023-12-26 11:06:55 -08:00
2023-09-28 10:49:23 -07:00
2023-12-26 11:06:57 -08:00
2023-10-09 12:06:29 -07:00
2022-10-13 09:32:56 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:04:21 -07:00
2021-11-09 09:39:11 -08:00
2023-11-26 10:07:05 +09:00
2023-12-26 11:06:55 -08:00
2023-12-26 11:06:57 -08:00
2023-06-12 13:52:51 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:44 -07:00
2023-10-09 12:04:21 -07:00
2023-10-09 12:06:47 -07:00
2023-12-15 14:08:28 -08:00
2023-12-26 11:06:57 -08:00
2022-10-13 09:32:54 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:29 -07:00
2023-12-26 11:06:55 -08:00
2023-12-26 11:06:55 -08:00
2021-12-20 14:55:02 -08:00
2024-02-07 21:33:37 -08:00
2024-02-08 16:22:01 -08:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:44 -07:00
2023-10-05 13:26:11 -07:00
2023-10-09 12:06:24 -07:00
2023-10-09 12:06:24 -07:00
2021-11-09 09:39:11 -08:00
2023-10-09 12:04:21 -07:00
2023-10-09 12:06:47 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:04:21 -07:00
2023-10-09 12:04:21 -07:00
2023-10-09 12:06:44 -07:00
2023-11-26 10:07:05 +09:00
2024-02-01 11:09:53 -08:00
2021-11-09 09:39:11 -08:00
2024-01-02 09:24:48 -08:00
2023-09-07 23:04:44 -07:00
2023-10-09 12:47:29 -07:00
2024-01-25 10:55:53 -08:00
2023-05-19 08:19:34 -07:00
2023-06-22 16:29:07 -07:00
2022-09-07 09:46:06 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:04:21 -07:00
2023-10-09 12:06:44 -07:00
2023-11-22 14:23:06 +09:00
2021-11-09 09:39:11 -08:00
2023-10-09 12:06:29 -07:00
2024-02-08 16:22:10 -08:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:44 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:04:21 -07:00
2022-09-21 10:21:46 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:44 -07:00
2023-12-26 11:06:55 -08:00
2022-05-04 10:30:01 -07:00
2023-10-02 14:54:29 -07:00
2023-03-30 07:50:43 -07:00
2023-05-12 14:54:14 -07:00
2022-10-24 15:44:20 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2023-11-02 16:53:28 +09:00
2023-10-09 12:06:47 -07:00
2023-10-30 07:09:55 +09:00
2023-10-09 12:06:29 -07:00
2024-02-13 14:44:49 -08:00
2023-10-09 12:06:29 -07:00
2022-10-13 09:32:58 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:47 -07:00
2022-05-09 10:53:58 -07:00
2023-10-30 07:09:57 +09:00
2023-12-26 11:06:55 -08:00
2023-11-26 10:10:49 +09:00
2023-10-09 12:06:44 -07:00
2022-10-13 09:32:56 -07:00
2023-01-13 09:55:45 -08:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2024-01-02 09:24:48 -08:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:29 -07:00
2024-02-08 16:22:01 -08:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2022-10-24 14:48:05 -07:00
2023-10-09 12:06:44 -07:00
2023-11-01 12:09:01 +09:00
2023-10-09 12:06:29 -07:00
2023-06-12 13:52:51 -07:00
2021-11-09 09:39:11 -08:00
2023-06-12 13:52:51 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:29 -07:00
2023-12-26 11:06:55 -08:00
2023-12-26 11:06:55 -08:00
2024-01-02 13:51:30 -08:00
2023-10-09 12:06:29 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:44 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2022-10-13 09:32:56 -07:00
2023-10-09 12:06:24 -07:00
2023-10-09 12:04:21 -07:00
2022-10-13 09:32:56 -07:00
2023-10-09 12:06:29 -07:00
2022-10-13 09:32:56 -07:00
2023-10-09 12:06:29 -07:00
2023-11-24 12:11:23 +09:00
2024-02-08 16:22:08 -08:00
2024-01-24 13:15:06 -08:00
2023-10-09 12:06:29 -07:00
2023-11-26 10:07:05 +09:00
2023-07-18 07:28:52 -07:00
2023-12-26 11:06:55 -08:00
2023-10-30 07:09:55 +09:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2022-10-30 19:58:40 -04:00
2023-12-26 11:06:55 -08:00
2023-12-14 14:38:07 -08:00
2023-03-06 21:51:56 -08:00
2023-12-26 11:06:55 -08:00
2023-07-27 15:26:37 -07:00
2023-12-26 11:06:55 -08:00
2023-07-25 14:55:07 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:29 -07:00
2024-02-08 16:22:01 -08:00
2023-10-09 12:06:29 -07:00
2023-12-26 11:06:55 -08:00
2022-08-10 14:07:37 -07:00
2023-12-03 10:54:51 +09:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:07:26 -07:00
2024-02-08 16:22:01 -08:00
2024-02-08 16:22:01 -08:00
2021-11-09 09:39:11 -08:00
2024-02-08 16:22:10 -08:00
2023-10-09 12:06:29 -07:00
2022-10-25 15:44:19 -07:00
2022-08-04 14:12:23 -07:00
2023-11-10 08:15:25 +09:00
2023-05-10 10:23:29 -07:00
2023-12-15 14:08:28 -08:00
2024-02-13 14:44:50 -08:00
2023-07-17 11:30:42 -07:00
2023-07-31 09:11:04 -07:00
2023-08-21 11:40:10 -07:00
2023-10-09 12:06:29 -07:00
2023-10-09 12:06:29 -07:00
2024-01-02 09:24:48 -08:00
2022-08-03 13:57:25 -07:00
2024-02-13 14:44:49 -08:00
2023-10-09 12:06:29 -07:00
2023-05-23 17:21:47 +09:00
2023-08-28 09:16:06 -07:00
2023-11-26 10:07:05 +09:00
2023-12-27 21:33:24 -08:00
2023-10-09 12:06:44 -07:00
2023-12-26 11:06:55 -08:00
2023-10-09 12:06:29 -07:00
2023-12-26 11:06:55 -08:00
2024-02-08 13:20:34 -08:00