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

Re: Git "branch properties"-- thoughts?

From
clime <clime7@gmail.com>
Date
Mar 16, 2018, 20:09 UTC
Message-ID
<1521230968-26591-1-git-send-email-clime7@gmail.com>
In-Reply-To
<xmqqo9kfs8ju.fsf@gitster-ct.c.googlers.com>
Show 11 quoted lines
>But for a generic branch like 'master', that arrangement would not
>work well, I am afraid.  You may have N copies of the same project,
>where the 'master' branch of each is used to work on separate topic.
>The focus of the 'master' branch of the overall project would be
>quite different from each of these copies you have, hence it is
>likely that it would be inappropriate to share the task list and
>stuff you would want to add to branch descriptions and branch
>properties between the shared repository's 'master' and any of your
>'master' in these N copies you have.
>
>So...

I think it could work in a way that other people branch properties are only taken into account if you don't have your own properties of those same names already set. In that case, git would initialize your branch properties from the other branch of the same name and inform you about it. Of course, you should always have a way to overwrite any property to a value of your choice. So what you would be getting from others were basically default values (inspired by https://docs.python.org/3.5/library/stdtypes.html#dict.setdefault).

Would it work? This sounds pretty good to me. I would really love to have a chance to implement this feature if people were interested in it.

clime
Previous: Junio C Hamano
Message 4 of 4 in “Git "branch properties"-- thoughts?”
  1. Paul SmithFeb 22, 2018
  2. Phillip WoodFeb 23, 2018
  3. Junio C HamanoFeb 23, 2018
  4. climeMar 16, 2018

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.