summaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-10-28 18:42:29 +0100
committerJunio C Hamano <gitster@pobox.com>2013-10-28 18:42:30 +0100
commite22c1c7f19914aa0dc1b6fe65bbfafed265d6e7f (patch)
treecc9fe2c10ec884cf474443bca6ac511065c95432 /cache.h
parentUpdate draft release notes to 1.8.5 (diff)
parentUse simpler relative_path when set_git_dir (diff)
downloadgit-e22c1c7f19914aa0dc1b6fe65bbfafed265d6e7f.tar.xz
git-e22c1c7f19914aa0dc1b6fe65bbfafed265d6e7f.zip
Merge branch 'jx/relative-path-regression-fix'
* jx/relative-path-regression-fix: Use simpler relative_path when set_git_dir relative_path should honor dos-drive-prefix test: use unambigous leading path (/foo) for MSYS
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 5e3fc72fd4..70ad174dd9 100644
--- a/cache.h
+++ b/cache.h
@@ -751,6 +751,7 @@ int is_directory(const char *);
const char *real_path(const char *path);
const char *real_path_if_valid(const char *path);
const char *absolute_path(const char *path);
+const char *remove_leading_path(const char *in, const char *prefix);
const char *relative_path(const char *in, const char *prefix, struct strbuf *sb);
int normalize_path_copy_len(char *dst, const char *src, int *prefix_len);
int normalize_path_copy(char *dst, const char *src);