Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 7 Jun 2010 01:42:12 +0000
(18:42 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 7 Jun 2010 01:42:12 +0000
(18:42 -0700)
* maint:
setup: document prefix
setup.c
patch
|
blob
|
history
raw
(from parent 1:
7c42e39
)
diff --git
a/setup.c
b/setup.c
index 5a083fa77dda016d0f3f511787ebf771aaf1be08..7e0460205dc1d15007849f367d21e999f2da044c 100644
(file)
--- a/
setup.c
+++ b/
setup.c
@@
-546,6
+546,12
@@
int check_repository_format(void)
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);