diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-04-23 15:05:56 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-04-23 15:05:56 -0700 |
| commit | 5c7ffafcea5fe37d435cc684d59eee91696dfb9f (patch) | |
| tree | 92cf92dfae892cb60d6fc974cda2b11a01b5fc3e /run-command.h | |
| parent | 5b7877482082698a730f1045c78cf90af544ab6c (diff) | |
| parent | 7bf3057d9cf569bcbdf3c1b43cce0eacde98a20b (diff) | |
| download | git-5c7ffafcea5fe37d435cc684d59eee91696dfb9f.tar.xz | |
Merge branch 'ps/run-auto-maintenance-in-receive-pack'
The "receive-pack" program (which responds to "git push") was not
converted to run "git maintenance --auto" when other codepaths that
used to run "git gc --auto" were updated, which has been corrected.
* ps/run-auto-maintenance-in-receive-pack:
builtin/receive-pack: convert to use git-maintenance(1)
run-command: introduce function to prepare auto-maintenance process
Diffstat (limited to 'run-command.h')
| -rw-r--r-- | run-command.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/run-command.h b/run-command.h index 1f22cc3827..55f6631a2a 100644 --- a/run-command.h +++ b/run-command.h @@ -218,6 +218,13 @@ int finish_command_in_signal(struct child_process *); int run_command(struct child_process *); /* + * Prepare a `struct child_process` to run auto-maintenance. Returns 1 if the + * process has been prepared and is ready to run, or 0 in case auto-maintenance + * should be skipped. + */ +int prepare_auto_maintenance(int quiet, struct child_process *maint); + +/* * Trigger an auto-gc */ int run_auto_maintenance(int quiet); |
