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

Re: git-branch --print-current

From: Adeodato Simó <hidden>
Date: 2016-06-15 22:45:52

* Karl Chen [Sun, 04 Jan 2009 04:40:51 -0800]:
    Arnaud> $ git branch | awk '/^\*/ {print $2}'
Yet another addition to the list of ways to pipeline it, this one
probably the shortest :)
Heh, if we're playing golf:

              $ git branch | sed -n 's/^\* //p'

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
Que no te vendan amor sin espinas
                -- Joaquín Sabina, Noches de boda
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help