X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=pathspec.h;h=a75e9242d1bea7e9318426d6786bd5eae9dc6215;hb=5169f5a484e5a60af15b6270f344b5e6f966fa11;hp=944baeb622cee4aeebb835d01982466cf2c2ce29;hpb=bb2fd90c7bbb4261aa1800a4c35b06dc5116a647;p=~andy%2Fgit diff --git a/pathspec.h b/pathspec.h index 944baeb62..a75e9242d 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,