aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsayjones.plus.com>2018-09-19 01:07:08 +0100
committerJunio C Hamano <gitster@pobox.com>2018-09-20 11:47:38 -0700
commitebb7baf02f69f2164b1f89148945d18c376fc6a8 (patch)
tree1fa1e3bd6c5811fb719e99739d9f22388b9ae70f /builtin/commit.c
parentInitial batch post 2.19 (diff)
downloadgit-ebb7baf02f69f2164b1f89148945d18c376fc6a8.tar.gz
git-ebb7baf02f69f2164b1f89148945d18c376fc6a8.zip
Makefile: add a hdr-check target
Commit ef3ca95475 ("Add missing includes and forward declarations", 2018-08-15) resulted from the author employing a manual method to create a C file consisting of a pair of pre-processor #include lines (for 'git-compat-util.h' and a given toplevel header), and fixing any resulting compiler errors or warnings. Add a Makefile target to automate this process. This implementation relies on the '-include' and '-xc' arguments to the 'gcc' and 'clang' compilers, which allows us to effectively create the required C compilation unit on-the-fly. This limits the portability of this solution to those systems which have such a compiler. The new 'hdr-check' target can be used to check most header files in the project (for various reasons, the 'compat' and 'xdiff' directories are not included). Also, note that individual header files can be checked directly using the '.hco' extension (read: Hdr-Check Object) like so: $ make config.hco HDR config.h $ Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions