summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-03-11 17:36:45 -0500
committerJunio C Hamano <gitster@pobox.com>2016-03-11 15:02:13 -0800
commit4b0d1eebe95b8ed187ff06ae46d69d517c2b759f (patch)
tree536967c182e91467d968b3076c1f70c1e1fd222b /setup.c
parentab5d01a29eb7380ceab070f0807c2939849c44bc (diff)
downloadgit-4b0d1eebe95b8ed187ff06ae46d69d517c2b759f.tar.gz
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>
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.c b/setup.c
index de1a2a7ea5..b2f2e690e4 100644
--- a/setup.c
+++ b/setup.c
@@ -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);
}
/*