]> git.ipfire.org Git - thirdparty/git.git/commitdiff
test-tool.h: include git-compat-util.h
authorJeff King <peff@peff.net>
Tue, 21 Aug 2018 18:41:40 +0000 (14:41 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Aug 2018 19:11:40 +0000 (12:11 -0700)
The test-tool programs include "test-tool.h" as their first
include, which breaks our CodingGuideline of "the first
include must be git-compat-util.h or an equivalent".

Rather than change them all, let's instead make test-tool.h
one of those equivalents, just like we do for builtin.h
(which many of the actual git builtins include first).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-tool.h

index 7116ddfb94398da98063b7efed77240058c6961f..d1ac9fa4c7956e16c0e8e7157427d1f4719eb612 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __TEST_TOOL_H__
 #define __TEST_TOOL_H__
 
+#include "git-compat-util.h"
+
 int cmd__chmtime(int argc, const char **argv);
 int cmd__config(int argc, const char **argv);
 int cmd__ctype(int argc, const char **argv);