Re: Command specific pager settings

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

 



Hi Jeff,

On 4 October 2010 06:53, Jeff King <peff@xxxxxxxx> wrote:
> On Mon, Oct 04, 2010 at 12:37:29AM -0700, suvayu ali wrote:
>
>> I wanted to set my pager to `less -iRS' when looking at patches (so
>> that would mean commands like `git diff'), but would prefer `less
>> -iFRS' or even the git default `less -FRSX' for all other things e.g
>> `git log'.
>>
>> I looked at core.pager and pager.<cmd> but I couldn't understand how I
>> could set different pagers for say just one/ a subset of commands (git
>> diff in my case).
>>
>> Is this possible? If not, would it be a worthwhile feature request?
>
> It's not currently possible, but this patch should do what you want,
> like:
>
>  git config core.pager "less -FRSX"
>  git config pager.diff "less -iRS"
>
> -- >8 --
> Subject: [PATCH] allow command-specific pagers in pager.<cmd>
>
> A user may want different pager settings or even a
> different pager for various subcommands (e.g., because they
> use different less settings for "log" vs "diff", or because
> they have a pager that interprets only log output but not
> other commands).
>
> This patch extends the pager.<cmd> syntax to support not
> only boolean to-page-or-not-to-page, but also to specify a
> pager just for a specific command.

This is exactly what I was hoping to achieve! However I use the git
packages for my distro (Fedora 13), I'll keep a lookout for the
updates with your patch. Thank you soo much. :)

-- 
Suvayu

Open source is the future. It sets us free.
--
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]