run-command.h: move declarations for run-command.c from cache.h

Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elijah Newren committed May 16, 2023 at 06:33 UTC 64c8559575a2d91bad66a3c0a7067d9275dd5905
4 files changed +5 -5
cache.h
-3
@@ -555,7 +555,4 @@ int checkout_fast_forward(struct repository *r,
555 const struct object_id *to,
556 int overwrite_ignore);
557
558 -
559 -int sane_execvp(const char *file, char *const argv[]);
560 -
558 #endif /* CACHE_H */
exec-cmd.c
+2 -1
@@ -1,10 +1,11 @@
1 -#include "cache.h"
1 +#include "git-compat-util.h"
2 #include "abspath.h"
3 #include "environment.h"
4 #include "exec-cmd.h"
5 #include "gettext.h"
6 #include "path.h"
7 #include "quote.h"
8 +#include "run-command.h"
9 #include "strvec.h"
10 #include "trace.h"
11 #include "trace2.h"
run-command.c
+1 -1
@@ -1,4 +1,4 @@
1 -#include "cache.h"
1 +#include "git-compat-util.h"
2 #include "run-command.h"
3 #include "environment.h"
4 #include "exec-cmd.h"
run-command.h
+2
@@ -564,4 +564,6 @@ enum start_bg_result start_bg_command(struct child_process *cmd,
564 void *cb_data,
565 unsigned int timeout_sec);
566
567 +int sane_execvp(const char *file, char *const argv[]);
568 +
569 #endif