Git development
 help / color / mirror / Atom feed
* fnmatch vs regex
@ 2014-03-05 19:55 Vincenzo di Cicco
  2014-03-05 21:27 ` Junio C Hamano
  2014-03-05 21:28 ` Jacopo Notarstefano
  0 siblings, 2 replies; 3+ messages in thread
From: Vincenzo di Cicco @ 2014-03-05 19:55 UTC (permalink / raw)
  To: git

Hi there, I'm NaN.
Recently I enrolled to this mailing list thanks to the GSoC.
I've looked the Ideas Page but -unfortunately- some projects are very
difficult for me.
I've looked the source code and I've seen that to perform a search
with a pattern to the branches list (and other commands) git uses
fnmatch() and so supports the glob pattern.
I haven't never massively used the branches or the tags to have the
necessity to filter in a particolar way the results, and the asterisk
has always worked very well.
But: why the decision to support the Blob Pattern instead of the
Regular Expressions?
With your experiences can a patch like this improve this side?

Thanks for the awesome work,
NaN

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fnmatch vs regex
  2014-03-05 19:55 fnmatch vs regex Vincenzo di Cicco
@ 2014-03-05 21:27 ` Junio C Hamano
  2014-03-05 21:28 ` Jacopo Notarstefano
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2014-03-05 21:27 UTC (permalink / raw)
  To: Vincenzo di Cicco; +Cc: git

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).

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fnmatch vs regex
  2014-03-05 19:55 fnmatch vs regex Vincenzo di Cicco
  2014-03-05 21:27 ` Junio C Hamano
@ 2014-03-05 21:28 ` Jacopo Notarstefano
  1 sibling, 0 replies; 3+ messages in thread
From: Jacopo Notarstefano @ 2014-03-05 21:28 UTC (permalink / raw)
  To: Vincenzo di Cicco; +Cc: Git Mailing List

On Wed, Mar 5, 2014 at 8:55 PM, Vincenzo di Cicco <enzodicicco@gmail.com> wrote:
> Hi there, I'm NaN.
> Recently I enrolled to this mailing list thanks to the GSoC.
> I've looked the Ideas Page but -unfortunately- some projects are very
> difficult for me.

Hi Vincenzo!

I also got interested in contributing to Git because of GSoC. I
encourage you to try doing a microproject: the coding part can be
*really* trivial. For example, mine just involved deleting lines
(after, of course, explaining why they weren't needed anymore). If you
are having trouble following the instructions in
Documentation/SubmittingPatches I recommend this video:
https://www.youtube.com/watch?v=LLBrBBImJt4.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-05 21:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05 19:55 fnmatch vs regex Vincenzo di Cicco
2014-03-05 21:27 ` Junio C Hamano
2014-03-05 21:28 ` Jacopo Notarstefano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox