summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Buchacher <drizzd@aon.at>2010-06-05 10:04:20 +0200
committerJunio C Hamano <gitster@pobox.com>2010-06-05 08:41:39 -0700
commite1e5ec868fab6f8131e8b228f1d6d543b7501933 (patch)
tree523a2dcc1297b693b6945fe71996a3e607683de3
parent761a889a97a33d277f8a6607a4696164391f9d5d (diff)
downloadgit-e1e5ec868fab6f8131e8b228f1d6d543b7501933.tar.gz
setup: document prefix
Signed-off-by: Clemens Buchacher <drizzd@aon.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--setup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index 5716d90b57..0e4cfe603f 100644
--- a/setup.c
+++ b/setup.c
@@ -519,6 +519,12 @@ int check_repository_format(void)
return check_repository_format_gently(NULL);
}
+/*
+ * Returns the "prefix", a path to the current working directory
+ * relative to the work tree root, or NULL, if the current working
+ * directory is not a strict subdirectory of the work tree root. The
+ * prefix always ends with a '/' character.
+ */
const char *setup_git_directory(void)
{
const char *retval = setup_git_directory_gently(NULL);