summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2018-08-21 14:41:40 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-21 12:11:40 -0700
commit69d846f05381af76be2b92f257dec68a2362c64d (patch)
tree285ac002dfc82a77196a2934c4583359d7490384
parentGit 2.18 (diff)
downloadtgif-69d846f05381af76be2b92f257dec68a2362c64d.tar.xz
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--t/helper/test-tool.h2
1 files changed, 2 insertions, 0 deletions
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);