@matheusbsbs / matheus-bagliano / commits / e1e5ec868f
Fork 0

setup: document prefix

Signed-off-by: Clemens Buchacher <drizzd@aon.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Clemens Buchacher committed Jun 5, 2010 at 10:04 UTC e1e5ec868fab6f8131e8b228f1d6d543b7501933
1 file changed +6
setup.c
+6
@@ -519,6 +519,12 @@ int check_repository_format(void)
519 return check_repository_format_gently(NULL);
520 }
521
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 + */
528 const char *setup_git_directory(void)
529 {
530 const char *retval = setup_git_directory_gently(NULL);