We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c42e39 + e1e5ec8 commit 6240161Copy full SHA for 6240161
setup.c
@@ -546,6 +546,12 @@ int check_repository_format(void)
546
return check_repository_format_gently(NULL);
547
}
548
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
+ */
555
const char *setup_git_directory(void)
556
{
557
const char *retval = setup_git_directory_gently(NULL);
0 commit comments