Skip to content

Commit 6240161

Browse files
committed
Merge branch 'maint'
* maint: setup: document prefix
2 parents 7c42e39 + e1e5ec8 commit 6240161

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
@@ -546,6 +546,12 @@ int check_repository_format(void)
546546
return check_repository_format_gently(NULL);
547547
}
548548

549+
/*
550+
* Returns the "prefix", a path to the current working directory
551+
* relative to the work tree root, or NULL, if the current working
552+
* directory is not a strict subdirectory of the work tree root. The
553+
* prefix always ends with a '/' character.
554+
*/
549555
const char *setup_git_directory(void)
550556
{
551557
const char *retval = setup_git_directory_gently(NULL);

0 commit comments

Comments
 (0)