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

Re: [PATCH] Introduce --current option to git-branch builtin command.

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Jun 7, 2012, 11:23 UTC
Message-ID
<CACsJy8Bn2S4UT5ctMBNNB_Wf8J00nGw38F6O0P-jb3dpXEcs9w@mail.gmail.com>
In-Reply-To
<CAECJ0BmcxeS1q8bw4hN9jDja2g8GGzNyN_v7jC3ehOW70x6CRA@mail.gmail.com>
On Thu, Jun 7, 2012 at 2:23 PM, Kenta Murata (村田 賢太) <mrkn@cookpad.com> wrote:
> Introducing --current option to git-branch builtin command.
> This option allows us to simply show the current branch name.

or just add an alias that does "git symbolic-ref HEAD" (append "|sed s,^refs/heads,," if you don't like full ref)

-- 
Duy
Previous: konglu@minatec.inpg.fr
Message 5 of 5 in “Introduce --current option to git-branch builtin command.”
  1. Introduce --current option to git-branch builtin command.Kenta Murata (村田 賢太), Jun 7, 2012
  2. Vincent van RavesteijnJun 7, 2012
  3. Junio C HamanoJun 7, 2012
  4. konglu@minatec.inpg.frJun 7, 2012
  5. Nguyen Thai Ngoc DuyJun 7, 2012

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.