Skip to content

Commit 32ed4cd

Browse files
committed
setup: make get_template_dir() a file-scope static
This function is only used from within the same file as a helper function. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 5b4c783 commit 32ed4cd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ static int template_dir_cb(const char *key, const char *value,
19271927
return 0;
19281928
}
19291929

1930-
const char *get_template_dir(const char *option_template)
1930+
static const char *get_template_dir(const char *option_template)
19311931
{
19321932
const char *template_dir = option_template;
19331933

setup.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ int verify_repository_format(const struct repository_format *format,
185185
*/
186186
void check_repository_format(struct repository_format *fmt);
187187

188-
const char *get_template_dir(const char *option_template);
189-
190188
#define INIT_DB_QUIET (1 << 0)
191189
#define INIT_DB_EXIST_OK (1 << 1)
192190
#define INIT_DB_SKIP_REFDB (1 << 2)

0 commit comments

Comments
 (0)