diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-11-18 14:31:29 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-11-18 14:31:29 -0800 |
commit | c6f1b920ac8b41b9175910d5866924a12a0ce6b9 (patch) | |
tree | ddc33851da0035b36eb67c1dbe6b83b28342420c /pathspec.h | |
parent | 33da0c9c3c2ec2706c80f70226739f14a66baa21 (diff) | |
parent | 4a2d5ae262a6d372d0951da9cee3c7ad2a8dbca6 (diff) | |
download | git-c6f1b920ac8b41b9175910d5866924a12a0ce6b9.tar.gz git-c6f1b920ac8b41b9175910d5866924a12a0ce6b9.tar.xz |
Merge branch 'nd/literal-pathspecs'
Fixes a regression on 'master' since v1.8.4.
* nd/literal-pathspecs:
pathspec: stop --*-pathspecs impact on internal parse_pathspec() uses
Diffstat (limited to 'pathspec.h')
-rw-r--r-- | pathspec.h | 7 |
1 files changed, 7 insertions, 0 deletions
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, |