All of lore.kernel.org
 help / color / mirror / Atom feed
* Notation for current branch?
@ 2016-08-28  9:58 ryenus
  2016-08-28 10:51 ` Kevin Daudt
  0 siblings, 1 reply; 9+ messages in thread
From: ryenus @ 2016-08-28  9:58 UTC (permalink / raw)
  To: git

I wonder if there's an easy to use notation to refer to the current branch?
which is expected be friendly to scripting.

For HEAD, there's @, which is short and concise.

But for the current branch, it seems one has to either use a not so friendly
plumbing command, or grep/parse the output of `git branch`, since the latter
doesn't even has any option to only print the plain name of the current branch,
or maybe an option can be added to `git branch`?

Thoughts?

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-09-01 15:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-28  9:58 Notation for current branch? ryenus
2016-08-28 10:51 ` Kevin Daudt
2016-08-28 13:56   ` Jakub Narębski
2016-08-29  6:39     ` Jacob Keller
2016-08-29 19:49       ` Junio C Hamano
2016-08-29 19:52         ` Jacob Keller
2016-09-01 15:51           ` ryenus
2016-08-30 18:09         ` ryenus
2016-08-30 18:19           ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.