Re: git-branch --print-current
- From
Adeodato Simó <dato@net.com.org.es>
- Date
- Jan 4, 2009, 18:02 UTC
- Message-ID
- <20090104180208.GA12298@chistera.yi.org>
- In-Reply-To
- <quack.20090104T0440.lthbpun1bxo@roar.cs.berkeley.edu>
* 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