diff options
author | Edward Thomson <ethomson@github.com> | 2021-10-31 09:45:46 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-09 15:17:17 +0000 |
commit | 95117d4744cf5a66f2bcde7991a925e9852d9b1e (patch) | |
tree | 070b80735f355dbb91528da9b98432ea747ae2f3 /src/patch_parse.c | |
parent | 44ec8b5cdf960cfeb66284a3cd5bdd8c14aefedf (diff) | |
download | libgit2-95117d4744cf5a66f2bcde7991a925e9852d9b1e.tar.gz |
path: separate git-specific path functions from util
Introduce `git_fs_path`, which operates on generic filesystem paths.
`git_path` will be kept for only git-specific path functionality (for
example, checking for `.git` in a path).
Diffstat (limited to 'src/patch_parse.c')
-rw-r--r-- | src/patch_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/patch_parse.c b/src/patch_parse.c index fce4bc9e4..891cf79a3 100644 --- a/src/patch_parse.c +++ b/src/patch_parse.c @@ -10,7 +10,7 @@ #include "git2/patch.h" #include "patch.h" #include "diff_parse.h" -#include "path.h" +#include "fs_path.h" typedef struct { git_patch base; @@ -80,7 +80,7 @@ static int parse_header_path_buf(git_str *path, git_patch_parse_ctx *ctx, size_t (error = git_str_unquote(path)) < 0) return error; - git_path_squash_slashes(path); + git_fs_path_squash_slashes(path); if (!path->size) return git_parse_err("patch contains empty path at line %"PRIuZ, |