diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2015-09-10 18:48:26 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-17 20:02:49 +0300 |
commit | bef0e12becd72b94d6bb9e48859742f55a4afb53 (patch) | |
tree | 1bc0ddf13958d68103b21aca5b4f968bea558756 /ref-filter.h | |
parent | 90c004085cfe65e1b290e5b5fc05817ec2c596a6 (diff) |
ref-filter: add option to match literal pattern
Since 'ref-filter' only has an option to match path names add an
option for plain fnmatch pattern-matching.
This is to support the pattern matching options which are used in `git
tag -l` and `git branch -l` where we can match patterns like `git tag
-l foo*` which would match all tags which has a "foo*" pattern.
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ref-filter.h')
-rw-r--r-- | ref-filter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ref-filter.h b/ref-filter.h index ef25b6ef87..a5cfa5e677 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -59,7 +59,8 @@ struct ref_filter { } merge; struct commit *merge_commit; - unsigned int with_commit_tag_algo : 1; + unsigned int with_commit_tag_algo : 1, + match_as_path : 1; unsigned int kind, lines; }; |