mirror of
https://github.com/git/git.git
synced 2024-11-19 02:13:55 +01: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:
parent
761a889a97
commit
e1e5ec868f
6
setup.c
6
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);
|
||||
|
Loading…
Reference in New Issue
Block a user