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

Re: [RFC] Clean way to disable pager

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Aug 20, 2007, 08:15 UTC
Message-ID
<vpqzm0mvcz0.fsf@bauges.imag.fr>
In-Reply-To
<85ps1jp2w9.fsf@lola.goethe.zz>
David Kastrup <dak@gnu.org> writes:
Show 18 quoted lines
> Adam Roben <aroben@apple.com> writes:
>
>> On Aug 19, 2007, at 12:44 PM, Matthieu Moy wrote:
>>
>>> +    [-p|--paginate] [--no-pager]
>>
>>   I think that [-p|--[no-]paginate] would be more consistent with the
>> way negatable options are normally specified.
>
> Disregard previously existing code, I'd vote for using an option set
> like the following:
>
> --pager
> --pager=less
> --pager=cat
> --no-pager
>
> "--paginate" is rather artificial in contrast.

ACK. I thought of naming the option --no-paginate, but I don't think that good english. --dont-paginate would be good english, but doesn't match the --[no-]whatever scheme.

Perhaps using David's proposal, and keeping the --paginate as a backward compatibility, deprecated switch is the way to go.

-- 
Matthieu
Previous: David KastrupNext: Jakub Narebski
Message 9 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.