Re: [PATCH 3/3] Teach cat-file a --quiet option

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

 



Junio C Hamano <junkio@xxxxxxx> wrote:
> "Shawn O. Pearce" <spearce@xxxxxxxxxxx> writes:
> > This is especially true if the script is using something like
> > `cat-file blob HEAD:path/to/file` to look at an optional file's
> > content.
> 
> I am not sure if I agree with this logic.  How is this different
> from discarding stderr to /dev/null?

Also, a redirect of stderr to /dev/null kills other error messages
that might be interesting to see on stderr of the caller, like if
a packfile isn't readable...  while my --quiet patch doesn't.j The
--quiet flag only kills errors that occurred because the requested
object doesn't exist.

-- 
Shawn.
-
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]