From 95117d4744cf5a66f2bcde7991a925e9852d9b1e Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Sun, 31 Oct 2021 09:45:46 -0400 Subject: 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). --- src/diff_tform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/diff_tform.c') diff --git a/src/diff_tform.c b/src/diff_tform.c index be55de6c3..d14134071 100644 --- a/src/diff_tform.c +++ b/src/diff_tform.c @@ -13,7 +13,7 @@ #include "diff.h" #include "diff_generate.h" -#include "path.h" +#include "fs_path.h" #include "futils.h" #include "config.h" @@ -481,7 +481,7 @@ static int similarity_sig( return error; /* if path is not a regular file, just skip this item */ - if (!git_path_isfile(info->data.ptr)) + if (!git_fs_path_isfile(info->data.ptr)) return 0; /* TODO: apply wd-to-odb filters to file data if necessary */ -- cgit v1.2.1