summaryrefslogtreecommitdiff
path: root/pathspec.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-12-05 14:11:11 -0800
committerJunio C Hamano <gitster@pobox.com>2013-12-05 14:11:20 -0800
commit15a42a10ec71eb18983750562a2a8a43b224fef0 (patch)
tree2c208dd06917ffc4361cee469bfd3d9b7e5405cb /pathspec.h
parentbb5d531efa804bbf09064e4a7ce65e096599f3c7 (diff)
parentd2446dfd7f3b3f8948142cfb07a0270e2497d93f (diff)
downloadgit-jk/remove-deprecated.tar.gz
Sync with 1.8.5jk/remove-deprecated
Diffstat (limited to 'pathspec.h')
-rw-r--r--pathspec.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pathspec.h b/pathspec.h
index 944baeb622..a75e9242d1 100644
--- a/pathspec.h
+++ b/pathspec.h
@@ -58,6 +58,13 @@ struct pathspec {
#define PATHSPEC_STRIP_SUBMODULE_SLASH_EXPENSIVE (1<<5)
#define PATHSPEC_PREFIX_ORIGIN (1<<6)
#define PATHSPEC_KEEP_ORDER (1<<7)
+/*
+ * For the callers that just need pure paths from somewhere else, not
+ * from command line. Global --*-pathspecs options are ignored. No
+ * magic is parsed in each pathspec either. If PATHSPEC_LITERAL is
+ * allowed, then it will automatically set for every pathspec.
+ */
+#define PATHSPEC_LITERAL_PATH (1<<8)
extern void parse_pathspec(struct pathspec *pathspec,
unsigned magic_mask,