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

Re: branch annotations?

From
Jeff King <peff@peff.net>
Date
Nov 25, 2013, 14:56 UTC
Message-ID
<20131125145644.GB23802@sigill.intra.peff.net>
In-Reply-To
<20131125084644.350bd4f7@bigbox.christie.dr>
On Mon, Nov 25, 2013 at 08:46:44AM -0600, Tim Chase wrote:
Show 10 quoted lines
> Is there any way to associate some sort of note with a branch that
> would be shown when listing them?  While I currently have things like
> "issue/QA-42", it would be nice to have a note associated with it so
> I could do something like
> 
>   $ git branch --show-notes
>     issue/CR-88: make sure NoSQL engines support .CSV file backends
>     issue/QA-31: add missile launch codes
>   * issue/QA-42: support flying cars
>     master

There is a "branch description" config entry that you can edit with "git branch --edit-description" (or by simply tweaking the config file yourself). However, it is currently only used by git-request-pull when generating the request.

I think it makes sense to be able to show it as part of "git branch", but the verbose branch listing there is a bit of a mess. Doing it cleanly would probably involve refactoring the branch-display code to allow users to specify more flexible formats.

Ramkumar (cc'd) was looking into that refactoring a while back, but I did not follow it closely (it looks like some of the underlying for-each-ref refactoring is on the 'next' branch?).

-Peff
Previous: Tim ChaseNext: Ramkumar Ramachandra
Message 4 of 5 in “branch annotations?”
  1. Tim ChaseNov 25, 2013
  2. Johan HerlandNov 25, 2013
  3. Tim ChaseNov 25, 2013
  4. Jeff KingNov 25, 2013
  5. Ramkumar RamachandraNov 25, 2013

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.