aboutsummaryrefslogtreecommitdiffstats
path: root/pathspec.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-02-24 00:09:31 +0000
committerJunio C Hamano <gitster@pobox.com>2023-02-23 17:25:29 -0800
commitac48adf488794417b1060b5ed2377a9fd4c33c17 (patch)
tree58d3b2d06a41d521ad5b50cfc872aa703a8e2d94 /pathspec.h
parenta64215b6cd5e67939187475c5b248dc5d13e3d60 (diff)
downloadgit-ac48adf488794417b1060b5ed2377a9fd4c33c17.tar.gz
dir.h: refactor to no longer need to include cache.h
Moving a few functions around allows us to make dir.h no longer need to include cache.h. This commit is best viewed with: git log -1 -p --color-moved Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pathspec.h')
-rw-r--r--pathspec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pathspec.h b/pathspec.h
index 41f6adfbb4..a5b38e0907 100644
--- a/pathspec.h
+++ b/pathspec.h
@@ -171,6 +171,11 @@ int match_pathspec_attrs(struct index_state *istate,
const char *name, int namelen,
const struct pathspec_item *item);
+int match_pathspec(struct index_state *istate,
+ const struct pathspec *pathspec,
+ const char *name, int namelen,
+ int prefix, char *seen, int is_dir);
+
/*
* Determine whether a pathspec will match only entire index entries (non-sparse
* files and/or entire sparse directories). If the pathspec has the potential to