diff options
author | Clemens Buchacher <drizzd@aon.at> | 2010-06-05 10:04:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-05 08:41:39 -0700 |
commit | e1e5ec868fab6f8131e8b228f1d6d543b7501933 (patch) | |
tree | 523a2dcc1297b693b6945fe71996a3e607683de3 /setup.c | |
parent | 761a889a97a33d277f8a6607a4696164391f9d5d (diff) | |
download | git-e1e5ec868fab6f8131e8b228f1d6d543b7501933.tar.gz |
setup: document prefix
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |