Skip to content

Commit 64c8559

Browse files
newrengitster
authored andcommitted
run-command.h: move declarations for run-command.c from cache.h
Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 90cbae9 commit 64c8559

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cache.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,4 @@ int checkout_fast_forward(struct repository *r,
555555
const struct object_id *to,
556556
int overwrite_ignore);
557557

558-
559-
int sane_execvp(const char *file, char *const argv[]);
560-
561558
#endif /* CACHE_H */

exec-cmd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
#include "cache.h"
1+
#include "git-compat-util.h"
22
#include "abspath.h"
33
#include "environment.h"
44
#include "exec-cmd.h"
55
#include "gettext.h"
66
#include "path.h"
77
#include "quote.h"
8+
#include "run-command.h"
89
#include "strvec.h"
910
#include "trace.h"
1011
#include "trace2.h"

run-command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "cache.h"
1+
#include "git-compat-util.h"
22
#include "run-command.h"
33
#include "environment.h"
44
#include "exec-cmd.h"

run-command.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,4 +564,6 @@ enum start_bg_result start_bg_command(struct child_process *cmd,
564564
void *cb_data,
565565
unsigned int timeout_sec);
566566

567+
int sane_execvp(const char *file, char *const argv[]);
568+
567569
#endif

0 commit comments

Comments
 (0)