setup: document check_repository_format()

This function's interface is rather enigmatic, so let's
document it further.

While we're here, let's also drop the return value. It will
always either be "0" or the function will die (consequently,
neither of its two callers bothered to check the return).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King
2016-03-11 17:36:45 -05:00
committed by Junio C Hamano
parent ab5d01a29e
commit 4b0d1eebe9
2 changed files with 10 additions and 3 deletions

View File

@ -982,9 +982,9 @@ int check_repository_format_version(const char *var, const char *value, void *cb
return 0;
}
int check_repository_format(void)
void check_repository_format(void)
{
return check_repository_format_gently(get_git_dir(), NULL);
check_repository_format_gently(get_git_dir(), NULL);
}
/*