Re: [PATCHv2] install-webdoc: quell diff output on stdout
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 6, 2010, 07:07 UTC
- Message-ID
- <7v7hizuz7h.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <52f347f82734e5d75d0b93a67edca9941efaa5a9.1283612149.git.git@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 5 quoted lines
> When installing html-doc, install-webdoc.sh compares the installed html > with the version to be installed using diff. Currently, the diff output > fills up stdout. > > install-webdoc.sh actually uses $DIFF, and is the only user.
I think you broke "tNNNN-X.sh -v"; isn't $DIFF used in t/ scripts everywhere?
Even if install-webdoc.sh were the sole user (which is not), please don't do it this way. Instead, introduce "SHOW_PATCH_WHILE_INSTALLING_WEBDOC" or something, and run "$DIFF" with "-q" when it is not set.
Otherwise you would forbid people from using $DIFF for its intended purpose: name a diff binary that can be used that is different from a crappy diff your platform gives you by default.