Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH/RFC] branch: add optional parameter to -r to specify remote

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:30

Michael J Gruber [off-list ref] writes:
quoted
For that matter, --match should be spelled "--glob", as we already have:

  $ git log --glob='jk/*'

I think having the ref-selection for "git branch" match that of the
revision walker makes sense.

-Peff
Well, "branch" is about refs, and "log" about revs.
Not really. What "log" output by traversing is about revisions, but we are
discussing how the command line argument discover the set of refs to feed
into the underlying machinery that does different things in each of the
command (branch just lists them without any traversal, log shows history
leading to the commits). So I do not see any difference and I think it
would be appropriate if we can use the same notation to specify both "I
want to see all branches that match this pattern" and "I want to see
history leading to all refs that match this pattern".
I'd rather have
"branch" similar to "tag" in that respect (i.e. '-l').
And "tag --glob='*'" also falls into the same class from that point of
view: "I want to see all tags that match this pattern".

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help