From: Junio C Hamano Date: Fri, 20 May 2005 12:53:58 GMT Subject: Re: [cogito] paged output for cg-diff Message-ID: <7v64xevz15.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <200505201105.08711.michal.rokos@nextsoft.cz> >>>>> "MR" == Michal Rokos writes: MR> I'm a bit curious what is going on in development so I'm using cg-diff MR> often. Usually I pipe it to the less. So for me it would be very nice MR> when cg-diff behaves as cg-log that pipes output to pager. I think that is a sensible thing to do. But doesn't "less" already do this part without being told? MR> +PAGER () { MR> + if [ -t 1 ]; then MR> + ${PAGER:-less} ${PAGER_FLAGS:--R} MR> + else MR> + cat MR> + fi MR> +}