summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2015-01-09 10:12:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-01-10 00:16:56 (GMT)
commit50fea42ef5202673c80600555f1308a9b3150471 (patch)
treeb6fbc8464ca4d8536f4dcf80e1fc471cbcd10081 /git.c
parent7ba46269a04de20032bd2dd614be6290cd65caab (diff)
downloadgit-50fea42ef5202673c80600555f1308a9b3150471.zip
git-50fea42ef5202673c80600555f1308a9b3150471.tar.gz
git-50fea42ef5202673c80600555f1308a9b3150471.tar.bz2
git.c: remove unnecessary #includes
"cache.h" and "commit.h" are already included via "builtin.h". We started to include "quote.h" at 575ba9d6 (GIT_TRACE: show which built-in/external commands are executed, 2006-06-25) that wanted to use sq_quote_print(). When 6ce4e61f (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 <kuleshovmail@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/git.c b/git.c
index 18fbf79..a7d170c 100644
--- a/git.c
+++ b/git.c
@@ -1,10 +1,7 @@
#include "builtin.h"
-#include "cache.h"
#include "exec_cmd.h"
#include "help.h"
-#include "quote.h"
#include "run-command.h"
-#include "commit.h"
const char git_usage_string[] =
"git [--version] [--help] [-C <path>] [-c name=value]\n"