Skip to content

Commit e1e5ec8

Browse files
Clemens Buchachergitster
authored andcommitted
setup: document prefix
Signed-off-by: Clemens Buchacher <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 761a889 commit e1e5ec8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,12 @@ int check_repository_format(void)
519519
return check_repository_format_gently(NULL);
520520
}
521521

522+
/*
523+
* Returns the "prefix", a path to the current working directory
524+
* relative to the work tree root, or NULL, if the current working
525+
* directory is not a strict subdirectory of the work tree root. The
526+
* prefix always ends with a '/' character.
527+
*/
522528
const char *setup_git_directory(void)
523529
{
524530
const char *retval = setup_git_directory_gently(NULL);

0 commit comments

Comments
 (0)