From: Adeodato Simó Date: Sun, 04 Jan 2009 18:02:08 GMT Subject: Re: git-branch --print-current Message-ID: <20090104180208.GA12298@chistera.yi.org> In-Reply-To: * 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