ref-filter: add option to match literal pattern
authorKarthik Nayak <redacted>
Thu, 10 Sep 2015 15:48:26 +0000 (21:18 +0530)
committerJunio C Hamano <redacted>
Thu, 17 Sep 2015 17:02:49 +0000 (10:02 -0700)
commitbef0e12becd72b94d6bb9e48859742f55a4afb53
tree1bc0ddf13958d68103b21aca5b4f968bea558756
parent90c004085cfe65e1b290e5b5fc05817ec2c596a6
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 <redacted>
Mentored-by: Matthieu Moy <redacted>
Signed-off-by: Karthik Nayak <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/for-each-ref.c
ref-filter.c
ref-filter.h
git clone https://git.99rst.org/PROJECT