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

Re: Fast-forward able commit, otherwise fail

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 8, 2016, 22:19 UTC
Message-ID
<xmqqbn27lqm0.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAP4gbxp6qKntysrkyTSWxkQNpqPzf2gHLiKpJzA-TmqO71sHyg@mail.gmail.com>
David Lightle <dlightle@gmail.com> writes:
Show 9 quoted lines
> In your above scenario with Alice & Bob, wouldn't that same issue come
> up in _any_ rebase workflow (--ff-only)?  From what I've read this is
> a typical consequence of requiring fast-forward merges; to be
> effective, the rebase step must  be more likely to succeed in a time
> window than for someone to have pushed additional changes (otherwise
> you end up in a loop like above).  But I don't believe that's
> inherently any worse with the change I'm asking about which  would
> only take that existing flag (--ff-only) and additionally create an
> actual merge commit when those conditions are present.

True, but that does not change the fact that you would be adding _more_ code to support a workflow that we know to be bad.

Show 7 quoted lines
> In fact, I just noticed that GitLab has built in the functionality I'm
> looking for even, which is what they call "Merge commit with
> semi-linear history" but I'm asking whether direct support for this
> approach would be reasonable.  These approaches can all produce the
> "untested merged product", but they support the way the users want to
> use the system as well.  I'm not saying any approach is right or wrong
> as I'm not qualified enough to say.

We, not being a for-profit entity, do not have a strong incentive to add features that encourages bad workflow to the users. Of course, we also do not necessarily stop them if users really want to shoot themselves in the foot ;-), but such a change would inevitably be of lower priority to us.

Previous: David LightleNext: Jacob Keller
Message 5 of 9 in “Fast-forward able commit, otherwise fail”
  1. David LightleJun 21, 2016
  2. Junio C HamanoJun 21, 2016
  3. Junio C HamanoJun 22, 2016
  4. David LightleJul 8, 2016
  5. Junio C HamanoJul 8, 2016
  6. Jacob KellerJul 9, 2016
  7. Stefan HallerJul 12, 2016
  8. Junio C HamanoJul 12, 2016
  9. Philip OakleyJul 20, 2016

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.