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

Re: range-diff: slight usability problem with mistyped ref

From
Kristoffer Haugsbakk <code@khaugsbakk.name>
Date
Apr 3, 2023, 19:29 UTC
Message-ID
<de43cd37-bfa5-4dbc-84d5-9362e9af6a9a@app.fastmail.com>
In-Reply-To
<818b3ad0-df43-3484-8c19-d95026f6b2b1@gmx.de>
Hi Johannes and thanks for your reply
On Tue, Mar 28, 2023, at 13:37, Johannes Schindelin wrote:
> So even making the exact error message depend on the number of
> arguments could result in misleading error message.

Yeah, I see. It seems that the variadic nature of the command makes it difficult to guess what the user might have meant in all cases.

> Do you have any splendid idea how to phrase the error message (or
> adapt it to the concrete invocation)?

No. I was going to look more closely at that if-else chain, but given the fact that I don’t know C and all the cases that would need to be covered (“what if the third argument happens to match both a ref and a file?”) I wouldn’t get anywhere.

-- 
Kristoffer Haugsbakk
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 4 in “range-diff: slight usability problem with mistyped ref”
  1. Kristoffer HaugsbakkMar 25, 2023
  2. Johannes SchindelinMar 28, 2023
  3. Kristoffer HaugsbakkApr 3, 2023
  4. Johannes SchindelinApr 4, 2023

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.