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

Re: [PATCH] Replace git --paginate by git --pager[=PAGER_CMD].

From
David Kastrup <dak@gnu.org>
Date
Aug 21, 2007, 09:19 UTC
Message-ID
<868x85gs8b.fsf@lola.quinscape.zz>
In-Reply-To
<vpqtzqte0dp.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 12 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
>> Personally, I like to read "git --paginate log" better than to read "git 
>> --pager log".  So I would not unnecessarily deprecate --paginate.  It's 
>> not like it hurts or something.
>
> It doesn't "hurt", but having several options to do the same thing is
> useless and confusing (someone reading here about --paginate and there
> about --pager may not immediately notice that one is an alias for the
> other).
>
> Anyway, how often do you type or read "git --paginate log"?
Since it is the default anyway...

Maybe one should have a way to tell git "don't use a pager by default, but _if_ someone says --pager, _then_ use the following pager".

If one has to set the pager to "cat" to disable paging, using --pager will not exactly be impressive.

So maybe --no-pager/--pager (or an equivalent config file setting) should not tamper with the setting of GIT_PAGER, but rather set/reset an independent flag.

-- 
David Kastrup
Previous: Matthieu MoyNext: Alex Riesen
Message 14 of 15 in “[RFC] Clean way to disable pager”
  1. Matthieu MoyAug 19, 2007
  2. Matthieu MoyAug 19, 2007
  3. Linus TorvaldsAug 19, 2007
  4. Brian GernhardtAug 19, 2007
  5. Junio C HamanoAug 19, 2007
  6. Matthieu MoyAug 19, 2007
  7. Adam RobenAug 19, 2007
  8. David KastrupAug 19, 2007
  9. Matthieu MoyAug 20, 2007
  10. Jakub NarebskiAug 21, 2007
  11. Replace git --paginate by git --pager[=PAGER_CMD].Matthieu Moy, Aug 21, 2007
  12. Johannes SchindelinAug 21, 2007
  13. Matthieu MoyAug 21, 2007
  14. David KastrupAug 21, 2007
  15. Alex RiesenAug 19, 2007

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.