Command specific pager settings

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

 



Hi everyone,

I am a new user of git and I was trying to configure the pager for git
and ran across something. Is it possible to have different command
options to less for different git commands?

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?
Thanks a lot for any pointers.

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