From: Jeff King Date: Tue, 21 Aug 2018 18:41:40 +0000 (-0400) Subject: test-tool.h: include git-compat-util.h X-Git-Tag: v2.19.0-rc1~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69d846f05381af76be2b92f257dec68a2362c64d;p=thirdparty%2Fgit.git test-tool.h: include git-compat-util.h 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 Signed-off-by: Junio C Hamano --- diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h index 7116ddfb94..d1ac9fa4c7 100644 --- a/t/helper/test-tool.h +++ b/t/helper/test-tool.h @@ -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);