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

Re: [PATCH v2] git checkout -b: unparent the new branch with -o

From: Bert Wesarg <hidden>
Date: 2016-06-15 22:48:25

On Fri, Mar 12, 2010 at 07:53, Junio C Hamano [off-list ref] wrote:
Erick Mattos [off-list ref] writes:
quoted
+     test "alpha" = "$(git branch | sed -n "/*/s/\* //p")" &&
Don't read from "git branch" in scripts; use symbolic-ref on HEAD.
I think what he wants is:

        git rev-parse --abbrev-ref HEAD

Bert
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help