summaryrefslogtreecommitdiff
path: root/src/patch_parse.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-11-11 15:20:50 -0500
committerGitHub <noreply@github.com>2021-11-11 15:20:50 -0500
commitceddeed80a21f0d3a3396d90dd61fada361ed745 (patch)
tree1b21dd455b3fbffcd4d5da52f5e8a58785510dd4 /src/patch_parse.c
parent9ab351c0d5330106b5562524cd303cbd5789a1d8 (diff)
parent1a8b2922d953e78bd51fc6d5ef290e1f7e00af3a (diff)
downloadlibgit2-ceddeed80a21f0d3a3396d90dd61fada361ed745.tar.gz
Merge pull request #6104 from libgit2/ethomson/path
path: refactor utility path functions
Diffstat (limited to 'src/patch_parse.c')
-rw-r--r--src/patch_parse.c4
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,