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

Re: Feature request: flagging “volatile” branches for integration/development

From
Duy Nguyen <pclouds@gmail.com>
Date
Feb 4, 2017, 14:01 UTC
Message-ID
<CACsJy8A5AXs5jQUQAdb=tuBzWYKNbu5DPnQ88DXott8ht61egA@mail.gmail.com>
In-Reply-To
<70ccb8fc-30f2-5b23-a832-9e470787a945@intel.com>
On Wed, Feb 1, 2017 at 12:12 AM, Herbert, Marc <marc.herbert@intel.com> wrote:
Show 12 quoted lines
> (Thanks to Josh Triplett[*] for contributing to this message)
>
> Hi,
>
> We often work with development/integration branches that regularly
> rebase, in addition to stable branches that do not. Git is used to share
> two different types of branches:
>   1. Pull requests and merged code with final SHA1s
>   2. Work in progress with volatile SHA1s.
>
> We’d like to have a consistent way to distinguish these two types by
> advertising a branch as “volatile”.

I don't think we have branch metadata (besides reflog). The closet one is probably config variable branch.<name>.description, which can be picked up by format-patch to create cover letters. We could do something similar, e.g. new config branch.<name>.volatile. The commands can learn about it and apply special treatments if wanted.

But that would be local information only. We don't have ways to transfer branch metadata (and we definitely don't want to just share .git/config file with everybody). I suppose extending git protocol for this is not hard (e.g. appending metadata in the "have" lines). The hard part may be policy (e.g. what if the user does not want a branch to be treated volatile by various commands even if it receives such flag from a git server).

-- 
Duy
Previous: Herbert, MarcNext: Herbert, Marc
Message 2 of 4 in “Feature request: flagging “volatile” branches for integration/development”
  1. Herbert, MarcJan 31, 2017
  2. Duy NguyenFeb 4, 2017
  3. Herbert, MarcFeb 15, 2017
  4. Junio C HamanoFeb 15, 2017

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.