Re: fnmatch vs regex
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 5, 2014, 21:27 UTC
- Message-ID
- <xmqqk3c8fia3.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CAKOJyXc2dezciw=x=-Gw3qjt3Sd=V=2Dy_ARZ25kmjYHULT5_w@mail.gmail.com>
Vincenzo di Cicco <enzodicicco@gmail.com> writes:
> But: why the decision to support the Blob Pattern instead of the > Regular Expressions?
s/Blob/glob/;
Matching pathnames using fnmatch/glob is a fine UNIX tradition; because we generally consider refnames also as "pathname-like" things, we use fnmatch for them, too (what we actually use is wildmatch, which can be thought of as a natural evolution of it).