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

Re: "checkout --track -b" broken? (with suggested fix)

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

Daniel Barkalow [off-list ref] writes:
On Thu, 16 Oct 2008, Junio C Hamano wrote:
quoted
The patch to branch.c is a quick fix for this issue.  The resulting code
passes all the tests, but I am not very proud of hardcoding the "HEAD" in
the code.  There must be a better way to do this.
I agree with the change to the test. I think it would be better to 
hard-code "refs/heads/" instead of "HEAD", and I feel like we must have a 
"is this ref name a branch?" function, if only because someone could stick 
"refs/tags/foo" in HEAD, and we should still say it's not something you 
could track, despite it being something different from "HEAD".
But you can track things under refs/remotes/, so...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help