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

Re: push branch descriptions

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Nov 14, 2012, 13:52 UTC
Message-ID
<50A3A217.3000902@drmicha.warpmail.net>
In-Reply-To
<CALkWK0meYVEe8OezEU2Oe-dQSZuo0ETwxXq3qWXzopH7x3msJA@mail.gmail.com>
Ramkumar Ramachandra venit, vidit, dixit 14.11.2012 11:33:
Show 13 quoted lines
> Hi,
> 
> Angelo Borsotti wrote:
>> currently, there is no means to push a branch description to a remote
>> repository. It is possible to create a branch, but not to set its
>> description.
>> Would not be more correct to push also branch descriptions when
>> branches are pushed?
> 
> Branch descriptions are currently stored in .git/config (see
> branch.<branchname>.description), and are hence intended to be local.
> But yes, it would be nice to have it synced with the remote- I have no
> clue how to make that possible though.

I find that nice, too, but back then I seemed to be the only one, "then" being the time when I proposed (and implemented) branch notes as notes (git notes) being attached to the (sha1 of the) branch name (or any other refname). They are versioned/shareable/syncable just like notes are. I had all of this working (git branch --notes display, git format-patch --cover-letter and such); what was missing was a way to attach/look-up notes for remote branches, which is related to our current lack of default handling of remote notes refs. That's not a fundamental problem, just a matter of agreeing about a proper default setup for remote notes refs.

As I said, others preferred local branch descriptions (no git notes) in config, and that's what is in git.git now.

Michael
Previous: Ramkumar RamachandraNext: Junio C Hamano
Message 3 of 7 in “push branch descriptions”
  1. Angelo BorsottiNov 14, 2012
  2. Ramkumar RamachandraNov 14, 2012
  3. Michael J GruberNov 14, 2012
  4. Junio C HamanoNov 14, 2012
  5. Angelo BorsottiNov 14, 2012
  6. Pyeron, Jason J CTR (US)Nov 14, 2012
  7. Junio C HamanoNov 14, 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.