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

Re: [PATCH] Revert "Stop starting pager recursively"

From
Jeff King <peff@peff.net>
Date
Apr 26, 2014, 07:13 UTC
Message-ID
<20140426071358.GA7558@sigill.intra.peff.net>
In-Reply-To
<20140425201048.GB29904@logfs.org>
[+cc Duy, whose patch this is]
On Fri, Apr 25, 2014 at 04:10:49PM -0400, Jörn Engel wrote:
> A second option is to add a --pager (or rather --no-pager) option to
> the command line and allow the user to specify
>     GIT_PAGER="git --no-pager -p column --mode='dense color'" git -p branch

I think we have "--no-pager" already. But the "-p" is turning _on_ the pager, so you could also just omit it. IOW, I really don't understand why the original command was not simply:

  GIT_PAGER="git column --mode='dense color'" git -p branch

The whole infinite loop that the original commit solved is caused by specifying the "-p". So it sounds like the right solution is "don't do that". Am I missing something useful that the "-p" does?

I wonder if perhaps the intent was that the user might have set "pager.column", in which case the use of the pager is implied. I still think that the right solution is to use "--no-pager" explicitly then. If the user is invoking git inside GIT_PAGER, it is up to them to save themselves from infinite recursion.

-Peff
Previous: Jörn EngelNext: Junio C Hamano
Message 5 of 13 in “Revert "Stop starting pager recursively"”
  1. Revert "Stop starting pager recursively"Jörn Engel, Apr 21, 2014
  2. Jörn EngelApr 25, 2014
  3. Matthieu MoyApr 25, 2014
  4. Jörn EngelApr 25, 2014
  5. Jeff KingApr 26, 2014
  6. Junio C HamanoApr 26, 2014
  7. Jeff KingApr 26, 2014
  8. Duy NguyenApr 27, 2014
  9. Jeff KingApr 27, 2014
  10. Matthieu MoyApr 27, 2014
  11. Jörn EngelApr 28, 2014
  12. Junio C HamanoApr 28, 2014
  13. Jörn EngelApr 28, 2014

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.