diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-10-28 10:42:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-10-28 10:42:30 -0700 |
commit | e22c1c7f19914aa0dc1b6fe65bbfafed265d6e7f (patch) | |
tree | cc9fe2c10ec884cf474443bca6ac511065c95432 /cache.h | |
parent | 3d092bfc6f2d9a998967979f926c661e9762601c (diff) | |
parent | 41894ae3a315f75ebc924881c6ce9a69d70ce9c0 (diff) | |
download | git-e22c1c7f19914aa0dc1b6fe65bbfafed265d6e7f.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |