Re: [Announce] GIT v1.5.0-rc2

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

 



On Tuesday, January 23, 2007 at 20:12:36 (+0100) Johannes Schindelin writes:
>Hi,
>
>On Tue, 23 Jan 2007, Bill Lear wrote:
>
>> I can't seem to get this to work, no matter what I do, using the latest 
>> 1.5.0-rc2 code.  I have the environment variables LESS, PAGER, 
>> PAGER_FLAGS, and I can't seem to get 'git diff' to not plough through my 
>> screen each time it is run, no matter the combinations...  Could someone 
>> post the magic?
>
>Try this:
>
>	PAGER=less LESS=-FRS git diff

Replied to Johannes off-line and thought this was working --- sorry
for the false positive.  It is in one regard: it completely suppresses
output if there is less than a full screen of output.

If I do this:

% export PAGER=less
% unset LESS
% git diff

I get 30 lines of output in my current repository, as I should.

If I then do this:

% LESS=-FRS git diff

I get nothing --- I do see a brief blink of output, but it's as if
less swallows it whole and I see nothing but the next prompt.

Hmmm ... I do seem to be using a rather old version of less:

% less --version
less 382
Copyright (C) 2002 Mark Nudelman

Could this be the culprit?  Will try and see...  Nope, downloaded,
built, and installed less-394 and I still see the same problem.  I also
see this problem when I do 'man git-gc', for example --- the manpage
just disappears.

If I set LESS to '-F' it fails.  If set to '-RS', output is seen but
then I see the screen blanked when there is no output from git diff.

This is on Centos 4.3.  I have not yet tried this on my Fedora Core 6
laptop, at home...



Bill
-
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]