]> granicus.if.org Git - git/commit
config.h: fix hdr-check warnings
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Sun, 13 Jan 2019 21:02:18 +0000 (21:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jan 2019 19:04:38 +0000 (11:04 -0800)
commit59b12ae96a738c3ad7cb9c0bfb8cad10f8cc242c
treed08e9b360a62368f160eca1e9a929bcb1b5a3824
parent6f11fd5edb6cd0ba2fc7bd9ce81587758c2a5700
config.h: fix hdr-check warnings

commit 8f7c7f5555 ("config.c: add repo_config_set_worktree_gently()",
2018-12-27) adds three function declarations that cause the hdr-check
make target to complain. The hdr-check complaint is caused by placing
the new declarations, which include 'struct repository *' parameters,
before the declaration of 'struct repository'. Move the struct
declaration to the top of the file.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.h