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

Re: [PATCH] Add -q option to "git rm" to suppress output when there aren't errors.

From
Alex Riesen <raa.lkml@gmail.com>
Date
Apr 16, 2007, 07:54 UTC
Message-ID
<81b0412b0704160054gd31f5aak961de15dbcba3956@mail.gmail.com>
In-Reply-To
<7vps65yvc1.fsf@assigned-by-dhcp.cox.net>
On 4/16/07, Junio C Hamano <junkio@cox.net> wrote:
Show 8 quoted lines
> What does it have to do with anything?
>
> Saying "git rm --quiet foo" from the command line, wishing to
> supress the output, is very understandable.
>
> Saying "git rm --ignore-unmatch foo bar baz", wishing to remove
> bar (which exists) even when foo does not exist, is also very
> understandable.

How about doing what rm(1) does? Something like "rm -f"? It returns 0 even if nothing given in command-line, but any error (like permissions) is reported and the status is not 0.

It is often that it is not the commands output which is annoying, but the _unwanted_ output. No one wants to see "rm 'file'". No one besides people debugging git-rm (you can't even use it for copy and paste of the filenames: it has "rm"'s in the text).

Previous: Steven Grimm
Message 14 of 14 in “Add -q option to "git rm" to suppress output when there aren't errors.”
  1. Add -q option to "git rm" to suppress output when there aren't errors.Steven Grimm, Apr 16, 2007
  2. Junio C HamanoApr 16, 2007
  3. Steven GrimmApr 16, 2007
  4. Junio C HamanoApr 16, 2007
  5. 1/2 Add --quiet option to suppress output of "rm" commands for removed files.Steven Grimm, Apr 16, 2007
  6. 2/2 Add --ignore-notfound option to exit with zero status when no files are removed.Steven Grimm, Apr 16, 2007
  7. Junio C HamanoApr 16, 2007
  8. Steven GrimmApr 16, 2007
  9. Jeff KingApr 16, 2007
  10. Junio C HamanoApr 16, 2007
  11. Jeff KingApr 16, 2007
  12. Josef WeidendorferApr 16, 2007
  13. Steven GrimmApr 16, 2007
  14. Alex RiesenApr 16, 2007

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.