Skip to content

Commit 50fea42

Browse files
0xAXgitster
authored andcommitted
git.c: remove unnecessary #includes
"cache.h" and "commit.h" are already included via "builtin.h". We started to include "quote.h" at 575ba9d (GIT_TRACE: show which built-in/external commands are executed, 2006-06-25) that wanted to use sq_quote_print(). When 6ce4e61 (Trace into a file or an open fd and refactor tracing code., 2006-09-02) introduced trace.c API, the calls this file makes to sq_quote_print() were replaced by calls to trace_argv_printf() that are declared in "cache.h", which this file already includes. We should have stopped including "quote.h" in that commit, but forgot to do so. Signed-off-by: Alexander Kuleshov <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7ba4626 commit 50fea42

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

git.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#include "builtin.h"
2-
#include "cache.h"
32
#include "exec_cmd.h"
43
#include "help.h"
5-
#include "quote.h"
64
#include "run-command.h"
7-
#include "commit.h"
85

96
const char git_usage_string[] =
107
"git [--version] [--help] [-C <path>] [-c name=value]\n"

0 commit comments

Comments
 (0)