summaryrefslogtreecommitdiff
path: root/src/path.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-07-08 15:45:50 -0400
committerEdward Thomson <ethomson@microsoft.com>2014-07-11 18:46:00 -0400
commit529fd30d1f81cc711ce3ca3857d637e84a1ca6e4 (patch)
tree237ac8450787374eb3bbf7f202ad1ebb4dcaa588 /src/path.h
parent356b891e3ec53ed937db38b6827c6045fc1beff4 (diff)
downloadlibgit2-529fd30d1f81cc711ce3ca3857d637e84a1ca6e4.tar.gz
Handle local file:/// paths on Windows
Windows can't handle a path like `/c:/foo`; when turning file:/// URIs into local paths, we must strip the leading slash.
Diffstat (limited to 'src/path.h')
-rw-r--r--src/path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/path.h b/src/path.h
index 3e6efe3de..b100af97e 100644
--- a/src/path.h
+++ b/src/path.h
@@ -439,6 +439,7 @@ extern int git_path_iconv(git_path_iconv_t *ic, char **in, size_t *inlen);
extern bool git_path_does_fs_decompose_unicode(const char *root);
/* Used for paths to repositories on the filesystem */
+extern bool git_path_is_local_file_url(const char *file_url);
extern int git_path_from_url_or_path(git_buf *local_path_out, const char *url_or_path);
#endif