From: Junio C Hamano Date: Mon, 06 Sep 2010 07:07:46 GMT Subject: Re: [PATCHv2] install-webdoc: quell diff output on stdout Message-ID: <7v7hizuz7h.fsf@alter.siamese.dyndns.org> In-Reply-To: <52f347f82734e5d75d0b93a67edca9941efaa5a9.1283612149.git.git@drmicha.warpmail.net> Michael J Gruber writes: > 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.