From: Clemens Buchacher <drizzd@aon.at>
Date: Sat, 5 Jun 2010 08:04:20 +0000 (+0200)
Subject: setup: document prefix
X-Git-Tag: v1.7.2-rc0~3^2~5
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e1e5ec868fab6f8131e8b228f1d6d543b7501933;p=git.git

setup: document prefix

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---

diff --git a/setup.c b/setup.c
index 5716d90b5..0e4cfe603 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);