git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Command specific pager settings

From
suvayu ali <fatkasuvayu+linux@gmail.com>
Date
Oct 4, 2010, 07:37 UTC
Message-ID
<AANLkTimLt0ERrB5b9p+_7fZBWfK3PHJkydmouiGfnurz@mail.gmail.com>
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.
Next: Jeff King
Message 1 of 3 in “Command specific pager settings”
  1. suvayu aliOct 4, 2010
  2. Jeff KingOct 4, 2010
  3. suvayu aliOct 4, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.