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

Since 2.7.0 git branch displays symbolic references as ref -> ref instead of ref -> branch

From
PSPhil Sainty <psainty@orcon.net.nz>
Date
Apr 3, 2016, 02:54 UTC
Message-ID
<570085DE.9000002@orcon.net.nz>
Given the following symbolic reference:
$ git symbolic-ref refs/heads/m refs/heads/master
Correct in 2.6.6:
$ PATH=~/git/git-2.6.6:$PATH git branch
   m -> master
* master
Wrong in 2.7.0:
$ PATH=~/git/git-2.7.0:$PATH git branch
   m -> m
* master
Still wrong in current version 2.8.0:
$ PATH=~/git/git-2.8.0:$PATH git branch
   m -> m
* master

As the new output isn't very useful, I assume this is an unintentional bug/regression.

The 2.6.6 output has been used since at least version 1.7.12.4 (when I first started making use of this ability).

-Phil
Next: Jeff King
Message 1 of 3 in “Since 2.7.0 git branch displays symbolic references as ref -> ref instead of ref -> branch”
  1. Phil SaintyApr 3, 2016
  2. branch: fix shortening of non-remote symrefsJeff King, Apr 3, 2016
  3. Karthik NayakApr 5, 2016

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.