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

Re: [PATCH] daemon: be strict at parsing parameters --[no-]informative-errors

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 20, 2013, 18:46 UTC
Message-ID
<20131220184644.GA10609@google.com>
In-Reply-To
<1387536832-650-1-git-send-email-pclouds@gmail.com>
Hi,
Nguyễn Thái Ngọc Duy wrote:
> Use strcmp() instead of starts_with() to stop accepting
> --informative-errors-just-a-little
>
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>

Good catch. When this use of prefixcmp was introduced in v1.7.8-rc0~28^2 (daemon: give friendlier error messages to clients, 2011-10-14) I think it was just a typo.

Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Previous: Nguyễn Thái Ngọc Duy
Message 2 of 2 in “daemon: be strict at parsing parameters --[no-]informative-errors”
  1. daemon: be strict at parsing parameters --[no-]informative-errorsNguyễn Thái Ngọc Duy, Dec 20, 2013
  2. Jonathan NiederDec 20, 2013

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.