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
Steven Grimm <koreth@midwinter.com>
Date
Apr 16, 2007, 00:17 UTC
Message-ID
<4622C0AC.8090904@midwinter.com>
In-Reply-To
<7v4pnh18hr.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> Suppressing output is understandable and probably is a useful
> thing to do, but I do not see a justification to tie that
> quietness to making the status unuable...
>   

The status is unusable as is, actually, for the particular use case of cg-admin-rewritehist. If you try to use git-rm as an index filter, cg-admin-rewritehist will stop running as soon as you hit a revision that doesn't contain the file you're looking to filter out. (If the file doesn't exist in the first revision in your repo, that means it will do no work at all.)

My justification was that the "-f" option to the normal UNIX "rm" command does the same thing: it suppresses output and causes the command to exit with a zero status code even if no files match. But "git rm -f" was already taken.

If you like I'll be happy to split it into two separate options.
-Steve
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 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.