diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-03-19 09:54:55 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-19 09:54:56 -0700 |
| commit | a7a079c2c4bc7b269229a6ea6c147b6b2d5b2684 (patch) | |
| tree | 204bfa2b742d068a08c53899a2a46f22db7f26b6 /run-command.h | |
| parent | 2ca397fa7c4a9d4764749a785f71c9a379cd0e5a (diff) | |
| parent | 9df3be8e2e7e2c9bf200de4bcfbd4e690a57f033 (diff) | |
| download | git-a7a079c2c4bc7b269229a6ea6c147b6b2d5b2684.tar.xz | |
Merge branch 'bk/run-command-wo-the-repository'
The run_command() API lost its implicit dependencyon the singleton
`the_repository` instance.
* bk/run-command-wo-the-repository:
run-command: wean auto_maintenance() functions off the_repository
run-command: wean start_command() off the_repository
Diffstat (limited to 'run-command.h')
| -rw-r--r-- | run-command.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/run-command.h b/run-command.h index 428d76ebd6..8ca496d7bd 100644 --- a/run-command.h +++ b/run-command.h @@ -5,6 +5,8 @@ #include "strvec.h" +struct repository; + /** * The run-command API offers a versatile tool to run sub-processes with * redirected input and output as well as with a modified environment @@ -136,7 +138,7 @@ struct child_process { * want to repack because that would delete `.pack` files (and on * Windows, you cannot delete files that are still in use). */ - unsigned close_object_store:1; + struct object_database *odb_to_close; unsigned stdout_to_stderr:1; unsigned clean_on_exit:1; @@ -227,12 +229,13 @@ int run_command(struct child_process *); * 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); +int prepare_auto_maintenance(struct repository *r, int quiet, + struct child_process *maint); /* * Trigger an auto-gc */ -int run_auto_maintenance(int quiet); +int run_auto_maintenance(struct repository *r, int quiet); /** * Execute the given command, sending "in" to its stdin, and capturing its |
