{"thread":{"id":"36068","subject":"fnmatch vs regex","startedAt":"2014-03-05T19:55:05Z","lastAt":"2014-03-05T21:28:07Z","messageCount":3,"participants":["Vincenzo di Cicco","Junio C Hamano","Jacopo Notarstefano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"236122","messageId":"CAKOJyXc2dezciw=x=-Gw3qjt3Sd=V=2Dy_ARZ25kmjYHULT5_w@mail.gmail.com","threadId":"36068","inReplyTo":null,"subject":"fnmatch vs regex","fromName":"Vincenzo di Cicco","fromEmail":"enzodicicco@gmail.com","sentAt":"2014-03-05T19:55:05Z","receivedAt":"2014-03-05T19:55:05Z","isPatch":false,"sender":{"key":"enzodicicco@gmail.com","avatar":"https://gravatar.com/avatar/c16429519a685a3688e67a55b0bdb6876a3bc96a064ffa8806b26463166fa3e2?d=mp&s=160"},"body":"Hi there, I'm NaN.\nRecently I enrolled to this mailing list thanks to the GSoC.\nI've looked the Ideas Page but -unfortunately- some projects are very\ndifficult for me.\nI've looked the source code and I've seen that to perform a search\nwith a pattern to the branches list (and other commands) git uses\nfnmatch() and so supports the glob pattern.\nI haven't never massively used the branches or the tags to have the\nnecessity to filter in a particolar way the results, and the asterisk\nhas always worked very well.\nBut: why the decision to support the Blob Pattern instead of the\nRegular Expressions?\nWith your experiences can a patch like this improve this side?\n\nThanks for the awesome work,\nNaN\n"},{"id":"236130","messageId":"xmqqk3c8fia3.fsf@gitster.dls.corp.google.com","threadId":"36068","inReplyTo":"CAKOJyXc2dezciw=x=-Gw3qjt3Sd=V=2Dy_ARZ25kmjYHULT5_w@mail.gmail.com","subject":"Re: fnmatch vs regex","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-03-05T21:27:16Z","receivedAt":"2014-03-05T21:27:16Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Vincenzo di Cicco <enzodicicco@gmail.com> writes:\n\n> But: why the decision to support the Blob Pattern instead of the\n> Regular Expressions?\n\ns/Blob/glob/;\n\nMatching pathnames using fnmatch/glob is a fine UNIX tradition;\nbecause we generally consider refnames also as \"pathname-like\"\nthings, we use fnmatch for them, too (what we actually use is\nwildmatch, which can be thought of as a natural evolution of it).\n"},{"id":"236131","messageId":"CAL0uuq0UaB0NF8rBP3TWGOUrT_jCMnFKKvweJ9d+XeYWPw300w@mail.gmail.com","threadId":"36068","inReplyTo":"CAKOJyXc2dezciw=x=-Gw3qjt3Sd=V=2Dy_ARZ25kmjYHULT5_w@mail.gmail.com","subject":"Re: fnmatch vs regex","fromName":"Jacopo Notarstefano","fromEmail":"jacopo.notarstefano@gmail.com","sentAt":"2014-03-05T21:28:07Z","receivedAt":"2014-03-05T21:28:07Z","isPatch":false,"sender":{"key":"jacopo.notarstefano@gmail.com","avatar":"https://avatars.githubusercontent.com/u/381280?v=4"},"body":"On Wed, Mar 5, 2014 at 8:55 PM, Vincenzo di Cicco <enzodicicco@gmail.com> wrote:\n> Hi there, I'm NaN.\n> Recently I enrolled to this mailing list thanks to the GSoC.\n> I've looked the Ideas Page but -unfortunately- some projects are very\n> difficult for me.\n\nHi Vincenzo!\n\nI also got interested in contributing to Git because of GSoC. I\nencourage you to try doing a microproject: the coding part can be\n*really* trivial. For example, mine just involved deleting lines\n(after, of course, explaining why they weren't needed anymore). If you\nare having trouble following the instructions in\nDocumentation/SubmittingPatches I recommend this video:\nhttps://www.youtube.com/watch?v=LLBrBBImJt4.\n"}]}