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

Re: [PATCH 2/2] rm: introduce advice.rmHints to shorten messages

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jun 8, 2013, 14:01 UTC
Message-ID
<CALkWK0==9aN1wVoSXENvTJHOT8bd2SYrEFxrmTdhzMxB3mHPCQ@mail.gmail.com>
In-Reply-To
<1370680434-2709-2-git-send-email-Mathieu.Lienard--Mayor@ensimag.imag.fr>
Mathieu Lienard--Mayor wrote:
Show 6 quoted lines
> As an example, the message:
>         error: 'foo.txt' has changes staged in the index
>         (use --cached to keep the file, or -f to force removal)
>
> would look like, with advice.rmHints=true:
>         error: 'foo.txt' has changes staged in the index

Um, have you switched the true with false? advice.* variables are true by default, and I turn off all of them.

Also, I think you can extend this to also remove add-advice. Why would someone want to turn off advice from rm, but not add? (Unsure about this)

> Similarly to advice.*, advice.rmHints has been added
> to the config variables. By default, it is set to false, in order to
> keep the messages the same as before. When set to true,  advice
> are no longer included in the error messages.
Ugh, why this roundabout-passive-past tone?  Use imperative tone like this:

Introduce advice.rmHints to control the whether to display advice when using 'git rm'. Defaults to true, preserving current behavior.

Previous: Mathieu Lienard--MayorNext: Mathieu Liénard--Mayor
Message 3 of 10 in “rm: better error message on failure for multiple files”
  1. 1/2 rm: better error message on failure for multiple filesMathieu Lienard--Mayor, Jun 8, 2013
  2. 2/2 rm: introduce advice.rmHints to shorten messagesMathieu Lienard--Mayor, Jun 8, 2013
  3. Ramkumar RamachandraJun 8, 2013
  4. Mathieu Liénard--MayorJun 10, 2013
  5. Ramkumar RamachandraJun 10, 2013
  6. Matthieu MoyJun 10, 2013
  7. Ramkumar RamachandraJun 10, 2013
  8. Ramkumar RamachandraJun 8, 2013
  9. Mathieu Liénard--MayorJun 10, 2013
  10. Célestin MatteJun 10, 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.