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

Re: [PATCH v2] rebase: make warning less passive aggressive

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 22, 2024, 17:00 UTC
Message-ID
<xmqqcysoh1t3.fsf@gitster.g>
In-Reply-To
<759cbb30-96dd-456a-baab-b9451d400dcb@app.fastmail.com>
"Kristoffer Haugsbakk" <code@khaugsbakk.name> writes:
> I’ve interpreted this error as: I’m not quite sure but it looks like you
> are not in the middle of a rebase? Like it can’t be completely
> sure. Maybe from a more “primitive” time, implementation-wise?[1] :)

It certainly is a good point. At least one other message in the same command is equally less assertive, e.g.

	die(_("It looks like 'git am' is in progress. Cannot rebase."));

It may have been OK to be uncertain in the earlier times back when we did not much know what we were doing, but by now we should be more assertive, so that the end-users can more easily complain, saying "The command said I was not rebasing, but I was! Here is what I did", which would hopefully be a valuable feedback for improving the logic to diagnose what state we are in.

So, making it clear that it is a statement of a fact, or at least we are telling the users what we _think_ the state is assertively, is a good idea either way.

Thanks.
Previous: Kristoffer Haugsbakk
Message 18 of 18 in “rebase: make warning less passive aggressive”
  1. rebase: make warning less passive aggressiveHarmen Stoppels via GitGitGadget, Feb 20, 2024
  2. Junio C HamanoFeb 20, 2024
  3. Michal SuchánekFeb 21, 2024
  4. Junio C HamanoFeb 21, 2024
  5. Junio C HamanoFeb 21, 2024
  6. Michal SuchánekFeb 21, 2024
  7. Jean-Noël AVILAFeb 21, 2024
  8. Junio C HamanoFeb 21, 2024
  9. Junio C HamanoFeb 22, 2024
  10. Jean-Noël AVILAFeb 22, 2024
  11. Michal SuchánekFeb 22, 2024
  12. Junio C HamanoFeb 22, 2024
  13. Patrick SteinhardtFeb 21, 2024
  14. Junio C HamanoFeb 21, 2024
  15. rebase: make warning less passive aggressiveHarmen Stoppels via GitGitGadget, Feb 21, 2024
  16. Patrick SteinhardtFeb 22, 2024
  17. Kristoffer HaugsbakkFeb 22, 2024
  18. Junio C HamanoFeb 22, 2024

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.