diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-06-06 18:42:12 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-06 18:42:12 -0700 |
commit | 624016114ed96ebdbd896c51d68f15790d834042 (patch) | |
tree | 6279adff5d9777b69fd91d90d45969327f5a312d /setup.c | |
parent | 7c42e390a37a11b1f7a77f5f07c261a8f930663a (diff) | |
parent | e1e5ec868fab6f8131e8b228f1d6d543b7501933 (diff) | |
download | git-624016114ed96ebdbd896c51d68f15790d834042.tar.gz |
Merge branch 'maint'
* maint:
setup: document prefix
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |