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

Re: Tracking parent branches in Git

From
Philip Oakley <philipoakley@iee.org>
Date
Jul 3, 2019, 15:58 UTC
Message-ID
<06b74350-0846-91c1-0198-c2bcabd20084@iee.org>
In-Reply-To
<20190702192412.GE3032@mit.edu>
On 02/07/2019 20:24, Theodore Ts'o wrote:
> I think the real problem with all of this feature request is that it's
> all presuming a particular workflow, and git is currently*not*
> strongly opinionated about the workflow.

I'd suggest that git does have a clear preference for a workflow that is based on the "upstream" view. (e.g. see 'rebase')

While Git tries to avoid being opinionated, it does develop a bias of avoiding various common workflows, to the point that they are not even well named.

In particular, we have a number of variants of the triangular workflow, such as having a personal github fork, and a then also a maintainer's repo to complete the triangle [which is even worse for those supporting Git-for-Windows because of two level maintenance cascade, with different compilation and OS requirements..]. Having three 'origins' is no fun.

There was an attempt to document a triangular flow a while back, but it wasn't actually that one. e.g. [1])

The other preference aspect is the tendency to expect users to 'support the machine' (e.g. the assume-unchanged file flag, which is commonly misunderstood), rather than having a clarity about when Git will support the user. Here we (they) are looking for the human readable name of the branch that they forked from (and is likely to have been extended since), rather than the oid hash of the fork point, though that is clearly useful and should be recorded with the branch name as it is immutable.

I am cautious about support for Gerrit on the basis that it could accidentally reinforce a centralised workflow (to the detriment of distributed operation), which should be avoided strongly as a deliberate bias.

However the desire to _locally_ record the branch name that the current branch was created from is something I would support (which is why I suggested the unused branch description...).

Philip

[1] https://public-inbox.org/git/5A8F8EE0162B49818813DAEFD68F61DA@PhilipOakley/

(sorry for any delays, I'm still in catch-up mode)
Previous: Theodore Ts'oNext: Eckhard Maaß
Message 9 of 13 in “Tracking parent branches in Git”
  1. Eric KulcykJul 1, 2019
  2. Junio C HamanoJul 1, 2019
  3. Bryan TurnerJul 1, 2019
  4. rsbecker@nexbridge.comJul 1, 2019
  5. Philip OakleyJul 2, 2019
  6. Junio C HamanoJul 2, 2019
  7. Bryan TurnerJul 2, 2019
  8. Theodore Ts'oJul 2, 2019
  9. Philip OakleyJul 3, 2019
  10. Eckhard MaaßJul 1, 2019
  11. Eric KulcykJul 1, 2019
  12. Eric KulcykJul 1, 2019
  13. Andreas KreyJul 2, 2019

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.