Re: [cogito] paged output for cg-diff
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 20, 2005, 12:53 UTC
- Message-ID
- <7v64xevz15.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <200505201105.08711.michal.rokos@nextsoft.cz>
>>>>> "MR" == Michal Rokos <michal.rokos@nextsoft.cz> 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> +}