* [PATCH] cat-file: remove unnecessary #include
@ 2015-01-10 18:29 Alexander Kuleshov
0 siblings, 0 replies; only message in thread
From: Alexander Kuleshov @ 2015-01-10 18:29 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, Alexander Kuleshov
"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
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
builtin/cat-file.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/builtin/cat-file.c b/builtin/cat-file.c
index 750b5a2..2e6aaa1 100644
--- a/builtin/cat-file.c
+++ b/builtin/cat-file.c
@@ -3,7 +3,6 @@
*
* Copyright (C) Linus Torvalds, 2005
*/
-#include "cache.h"
#include "builtin.h"
#include "parse-options.h"
#include "userdiff.h"
--
2.2.1.532.g168b885.dirty
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-10 18:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-10 18:29 [PATCH] cat-file: remove unnecessary #include Alexander Kuleshov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).