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

Re: [PATCH] Add '-P' as a synonym for '--no-pager' in the git command

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Dec 16, 2011, 09:30 UTC
Message-ID
<vpqliqc50f2.fsf@bauges.imag.fr>
In-Reply-To
<1323982541-18995-1-git-send-email-jratt0@gmail.com>
Joe Ratterman <jratt0@gmail.com> writes:
>   Also, add both -P|--no-pager to the existing -p|--paginate in bash
>   completion.

A good commit message should always answer the question "why?". In this case, I really don't see why this is needed. If you don't like Git's auto-paginate feature, turn it off with core.pager or pager.<cmd>. If you like it, you very rarely need --no-pager (IIRC, I'm the one who introduced --no-pager, and I don't think I've ever used it outside a script).

So, I'd rather keep -P free in case we need it later for something really useful (or possibly a better commit message).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C Hamano
Message 3 of 3 in “Add '-P' as a synonym for '--no-pager' in the git command”
  1. Add '-P' as a synonym for '--no-pager' in the git commandJoe Ratterman, Dec 15, 2011
  2. Junio C HamanoDec 15, 2011
  3. Matthieu MoyDec 16, 2011

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.