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

Re: about c8af1de9 (git status uses pager)

From
Jeff King <peff@peff.net>
Date
Jun 23, 2008, 15:23 UTC
Message-ID
<20080623152309.GA24101@sigill.intra.peff.net>
In-Reply-To
<7vtzfln5zw.fsf@gitster.siamese.dyndns.org>
On Sun, Jun 22, 2008 at 03:01:07AM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> Jeff had a patch to allow boolean configuration variable "pager.<command>"
> to override the built-in pager settings during 1.5.6 cycle, and I think it
> was a reasonable approach to take.  People who want to page output from
> git-status can then set "pager.status = true" in their configuration (and
> then we can revert c8af1de (make git-status use a pager, 2008-04-23)).
> Alternatively we could keep the current status-quo for the default, and
> people can say "pager.status = false" in their configuration.

I have been running with the patch for a month or two, and it works fine for controlling the pager. Unfortunately, there is a nasty interaction in the git wrapper with reading the config file early, and we end up not calculating the GIT_DIR and worktree in the same way. I think this is part of a larger problem which needs solving, but everytime I look at it, my eyes start bleeding (and I have to admit, since the patch does work, I have forgotten how annoyed I was at the paging behavior in the first place, and I don't have as much motivation to work on it).

I think this is deeply related to the "git config alias.st status && cd .git && git st" problem, which is also on my long-term todo. So I'll see if I can do something about it during this release cycle.

-Peff
Previous: Junio C HamanoNext: Tim Stoakes
Message 8 of 21 in “about c8af1de9 (git status uses pager)”
  1. Jan EngelhardtJun 21, 2008
  2. Vegard NossumJun 21, 2008
  3. Junio C HamanoJun 21, 2008
  4. Jan EngelhardtJun 21, 2008
  5. Jan EngelhardtJun 22, 2008
  6. Junio C HamanoJun 22, 2008
  7. Junio C HamanoJun 22, 2008
  8. Jeff KingJun 23, 2008
  9. Tim StoakesJul 3, 2008
  10. Jeff KingJul 3, 2008
  11. Johannes SchindelinJul 3, 2008
  12. Wincent ColaiutaJul 3, 2008
  13. Jeff KingJul 3, 2008
  14. Wincent ColaiutaJul 3, 2008
  15. Vegard NossumJun 22, 2008
  16. Johannes GilgerJun 21, 2008
  17. Johannes GilgerJun 22, 2008
  18. Dan McGeeJun 26, 2008
  19. Matthieu MoyJun 26, 2008
  20. Wincent ColaiutaJun 26, 2008
  21. Jeff KingJun 26, 2008

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.