git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] branch: introduce --current display option

From
Daniels Umanovskis <daniels@umanovskis.se>
Date
Oct 9, 2018, 18:20 UTC
Message-ID
<20181009182006.9446-1-daniels@umanovskis.se>
I often find myself needing the current branch name, for which currently there's git rev-parse --abrev-ref HEAD. I would expect `git branch` to have an option to output the branch name instead.
This is my first patch to Git, so process-related comments (patch formatting, et cetera) are quite welcome.
Daniels Umanovskis (2):
  branch: introduce --current display option
  doc/git-branch: Document the --current option
 Documentation/git-branch.txt |  6 +++++-
 builtin/branch.c             | 16 ++++++++++++++++
 t/t3203-branch-output.sh     | 18 ++++++++++++++++++
 3 files changed, 39 insertions(+), 1 deletion(-)
-- 
2.19.1.272.gf84b9b09d.dirty
Next: Junio C Hamano
Message 1 of 9 in “branch: introduce --current display option”
  1. 0/2 branch: introduce --current display optionDaniels Umanovskis, Oct 9, 2018
  2. Junio C HamanoOct 9, 2018
  3. Eric SunshineOct 10, 2018
  4. Eric SunshineOct 10, 2018
  5. Rafael AscensãoOct 10, 2018
  6. brian m. carlsonOct 10, 2018
  7. Ævar Arnfjörð BjarmasonOct 10, 2018
  8. Daniels UmanovskisOct 10, 2018
  9. Stefan BellerOct 10, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.