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

Re: [PATCH 2/2] Add --ignore-notfound option to exit with zero status when no files are removed.

From
Junio C Hamano <junkio@cox.net>
Date
Apr 16, 2007, 07:59 UTC
Message-ID
<7vps64vjfc.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070416075324.GA18961@midwinter.com>
Steven Grimm <koreth@midwinter.com> writes:
>  Documentation/git-rm.txt |    3 +++
>  builtin-rm.c             |   21 +++++++++++++++++----
>  t/t3600-rm.sh            |    4 ++++
>  3 files changed, 24 insertions(+), 4 deletions(-)

I find it easier to see what is going on with two independent features separated out, especially with tests. Much nicer.

Show 7 quoted lines
> @@ -47,6 +47,9 @@ OPTIONS
>  	the paths only from the index, leaving working tree
>  	files.
>  
> +\--ignore-notfound::
> +	Exit with a zero status even if no files matched.
> +

ls-files has --error-unmatch so we may want to make the name consistent by saying --ignore-unmatch? I particularly do not care about the minute naming issues _right_ _now_, but we might regret it in the long run.

No need to resend unless you have an actual fix; I'll queue your patch as is in 'pu', wait for a few days for comments on the naming, and amend it as needed.

Thanks.
Previous: Steven GrimmNext: Steven Grimm
Message 7 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.