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

Re: Fixup of a fixup not working right

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 5, 2016, 07:53 UTC
Message-ID
<alpine.DEB.2.20.1609050950130.129229@virtualbox>
In-Reply-To
<8F7471262D1C45D9A7BD1C29277004AD@PhilipOakley>
Hi Philip,
On Sun, 4 Sep 2016, Philip Oakley wrote:
Show 14 quoted lines
> From: "Johannes Schindelin" <Johannes.Schindelin@gmx.de>
> 
> > The point is that fixup! messages are really special, and are always
> > intended to be squashed into the referenced commit *before* the latter
> > hits `master`.
> 
> I think it's here that we have the hidden use case. I agree that all fixups
> should be squashed before they hit the blessed golden  repository.
> 
> I suspect that some use cases have intermediate repositories that
> contain a 'master' branch (it's just a name ;-) that isn't blessed and
> golden, e.g. at the team review repo level. In such cases it is possible
> for a fixup! to be passed up as part of the review, though it's not the
> current norm/expectation.

In such a case (which can totally arise when criss-crossing Pull Requests on GitHub, for example, where a Pull Request's purpose may be to fix up commits in another Pull Request before the latter is merged), the most appropriate course of action is... to not reorder the fixup!s prematurely.

> > In short, I am opposed to this change.
> 
> It's not like G4W doesn't need fixup!s on the side branches e.g. 5eaffe9
> ("fixup! Handle new t1501 test case properly with MinGW", 2016-07-12)

Yeah, well, Git for Windows' `master` branch is special, in that it is constantly rebased (as "merging rebases", to keep fast-forwardability). I would not necessarily use Git for Windows as a role model in this respect.

Ciao, Dscho

Previous: Philip OakleyNext: Philip Oakley
Message 8 of 10 in “Fixup of a fixup not working right”
  1. Robert DaileySep 2, 2016
  2. Philip OakleySep 2, 2016
  3. Junio C HamanoSep 3, 2016
  4. Robert DaileySep 3, 2016
  5. Philip OakleySep 3, 2016
  6. Johannes SchindelinSep 4, 2016
  7. Philip OakleySep 4, 2016
  8. Johannes SchindelinSep 5, 2016
  9. Philip OakleySep 6, 2016
  10. Johannes SchindelinSep 7, 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.