Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: Difficulties in advertising a new branch to git newbies

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:52

Carl Worth [off-list ref] writes:
So, could we fix this so that a remote branch name will resolve
without the "origin/" prefix if it is not ambiguous?
I am fairly negative on this one, especially I do not think the
symptom deserves to be described with the word "fix".  DWIM is
good, but it has bounds, and this particular one feels it is
slightly on the other side of the boundary.  We currently only
DWIM out of a fixed set of patterns -- if you want to extend it,
it would now require readdir() to expand.
I can imagine the resolution rules are already fairly complicated, (I
don't even know what they all are already).
If you add another DWIM rule, then I suspect that you would have
harder time explaining why they get "hey, that is ambiguous"
error.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help