diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-03 21:47:53 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-03 21:47:53 +0200 |
commit | 18d7896cb00b9a4abe55cb461e12db4813e6a59e (patch) | |
tree | e701c6bfee7bc851280a0130463ee98c44dc8faf /src/path.h | |
parent | bccb36ebf9d950f7562153d9e9ef9a3678e72516 (diff) | |
download | libgit2-18d7896cb00b9a4abe55cb461e12db4813e6a59e.tar.gz |
clone: re-use the local transport's path resolutioncmn/path-to-path
Whe already worked out the kinks with the function used in the local
transport. Expose it and make use of it in the local clone method
instead of trying to work it out again.
Diffstat (limited to 'src/path.h')
-rw-r--r-- | src/path.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/path.h b/src/path.h index 3213c5104..3e6efe3de 100644 --- a/src/path.h +++ b/src/path.h @@ -438,4 +438,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 int git_path_from_url_or_path(git_buf *local_path_out, const char *url_or_path); + #endif |