Skip to contentSkip to conversation

cat-file: remove unnecessary #include

PATCH New Alexander Kuleshov 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cat-file: remove unnecessary #include

"cache.h" is already included in "builtin.h"

It appeared at e83c51 (Initial revision of "git", the information manager from hell., 8 Apr 2005) and used cache.c API (get_sha1_hex and read_sha1_file). After this in the commit f81dae (Builtin git-cat-file., ) was included "builtin.h", which already includes "cache.h", so we no need to include it in the cat-file.c

---
 builtin/cat-file.c | 1 -
 1 file changed, 1 deletion(-)
builtin/cat-file.c +0 -1
index 750b5a2..2e6aaa1 100644
@@ -3,7 +3,6 @@
  *
  * Copyright (C) Linus Torvalds, 2005
  */
-#include "cache.h"
 #include "builtin.h"
 #include "parse-options.h"
 #include "userdiff.h"
Signature · 1 line
2.2.1.532.g168b885.dirty