Re: [PATCH] revision: introduce --exclude=<glob> to tame wildcards
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Aug 31, 2013, 19:33 UTC
- Message-ID
- <CAMP44s1hhoPbeBsmN8NL_VtCz3bO-jg1sPP7hovL1kPBhbrXFQ@mail.gmail.com>
- In-Reply-To
- <xmqq1u5aybri.fsf_-_@gitster.dls.corp.google.com>
On Fri, Aug 30, 2013 at 6:55 PM, Junio C Hamano <gitster@pobox.com> wrote:
> People often find "git log --branches" etc. that includes _all_ > branches is cumbersome to use when they want to grab most but except > some. The same applies to --tags, --all and --glob.
This idea looks very familiar, from the wording of this commit message it seems you came with the idea out of nowhere. Did you?
Show 9 quoted lines
> Teach the revision machinery to remember patterns, and then upon the > next such a globbing option, exclude those that match the pattern. > > With this, I can view only my integration branches (e.g. maint, > master, etc.) without topic branches, which are named after two > letters from primary authors' names, slash and topic name. > > git rev-list --no-walk --exclude=??/* --branches | > git name-rev --refs refs/heads/* --stdin
My patch does the trick with:
--branches --except --glob='heads/??/*'
-- Felipe Contreras