summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 761a889)
raw | patch | inline | side by side (parent: 761a889)
author | Clemens Buchacher <drizzd@aon.at> | |
Sat, 5 Jun 2010 08:04:20 +0000 (10:04 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 5 Jun 2010 15:41:39 +0000 (08:41 -0700) |
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c | patch | blob | history |
index 5716d90b57574d045114f4aaad1bdf36fd79ed89..0e4cfe603f1afe515365c9daf1ad8406de8e7fa8 100644 (file)
--- a/setup.c
+++ b/setup.c
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);