1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-18 12:26:33 +02:00

setup: document prefix

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Clemens Buchacher 2010-06-05 10:04:20 +02:00 committed by Junio C Hamano
parent 761a889a97
commit e1e5ec868f

View File

@ -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);