]> git.ipfire.org Git - thirdparty/git.git/blobdiff - run-command.h
The 19th batch
[thirdparty/git.git] / run-command.h
index 1f22cc3827d7d0c53119d085c3ef53a6ab3c36fd..03e7222d8b5d74dfc962763d2f6fed2641f24d91 100644 (file)
@@ -195,6 +195,11 @@ int is_executable(const char *name);
  */
 int exists_in_PATH(const char *command);
 
  */
 int exists_in_PATH(const char *command);
 
+/**
+ * Return the path that is used to execute Unix shell command-lines.
+ */
+char *git_shell_path(void);
+
 /**
  * Start a sub-process. Takes a pointer to a `struct child_process`
  * that specifies the details and returns pipe FDs (if requested).
 /**
  * Start a sub-process. Takes a pointer to a `struct child_process`
  * that specifies the details and returns pipe FDs (if requested).
@@ -217,6 +222,13 @@ int finish_command_in_signal(struct child_process *);
  */
 int run_command(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
  */
 /*
  * Trigger an auto-gc
  */