aboutsummaryrefslogtreecommitdiff
path: root/path.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-04-03 13:01:08 -0700
committerJunio C Hamano <gitster@pobox.com>2026-04-03 13:01:08 -0700
commit4e5821732e684f21a35288d8e67f453ca2595083 (patch)
tree680cbb335f062837d79e0a92dad3af95c132f5d1 /path.h
parentcd79c76a51f776bf46a849db04ce2cc45c5c5d6d (diff)
parent46d1f4cf4dcb8aaf799f78410af829e149086f36 (diff)
downloadgit-4e5821732e684f21a35288d8e67f453ca2595083.tar.xz
Merge branch 'ds/backfill-revs'
`git backfill` learned to accept revision and pathspec arguments. * ds/backfill-revs: t5620: test backfill's unknown argument handling path-walk: support wildcard pathspecs for blob filtering backfill: work with prefix pathspecs backfill: accept revision arguments t5620: prepare branched repo for revision tests revision: include object-name.h
Diffstat (limited to 'path.h')
-rw-r--r--path.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/path.h b/path.h
index cbcad254a0..0434ba5e07 100644
--- a/path.h
+++ b/path.h
@@ -112,6 +112,12 @@ const char *repo_submodule_path_replace(struct repository *repo,
const char *fmt, ...)
__attribute__((format (printf, 4, 5)));
+/*
+ * Given a directory name 'dir' (not ending with a trailing '/'),
+ * determine if 'buf' is equal to 'dir' or has prefix 'dir'+'/'.
+ */
+int dir_prefix(const char *buf, const char *dir);
+
void report_linked_checkout_garbage(struct repository *r);
/*