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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/16/07, Junio C Hamano <junkio@xxxxxxx> wrote:
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).
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]