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

Re: [PATCH/RFC] "git --less cmd" to page anywhere

From
Linus Torvalds <torvalds@osdl.org>
Date
Jun 7, 2006, 03:21 UTC
Message-ID
<Pine.LNX.4.64.0606062011030.5498@g5.osdl.org>
In-Reply-To
<46a038f90606061929i68073677i686a3c1934ed64b1@mail.gmail.com>
On Wed, 7 Jun 2006, Martin Langhoff wrote:
> 
> Why is it not a good default? Unless I expect it to be shorter than
> the terminal, I always tack "| less" after it. Except when I tack ">
> foo.patch" and then the auto-pager knows what to do anyway.

I often tack "| less" after it in some situations, but in other situations I _never_ do.

I often use "git diff" as a way to see that my tree is clean. Sure, I could do "git status", but if it's not clean, it's usually something small, so I want to know what I changed last. At that point, a default pager would be very annoying.

The "more" behaviour (which only paginates unto the end) might work for me (ie the "git diff" auto-pager would act like "more" or "less -EX")

I dunno.
		Linus
Previous: Martin Langhoff
Message 12 of 12 in “Support for configurable git command aliases (v2)”
  1. Support for configurable git command aliases (v2)Petr Baudis, Jun 4, 2006
  2. Petr BaudisJun 4, 2006
  3. Martin MaresJun 4, 2006
  4. Petr BaudisJun 4, 2006
  5. Junio C HamanoJun 4, 2006
  6. Linus TorvaldsJun 4, 2006
  7. "git --less cmd" to page anywhereJunio C Hamano, Jun 6, 2006
  8. Linus TorvaldsJun 7, 2006
  9. Petr BaudisJun 7, 2006
  10. Linus TorvaldsJun 7, 2006
  11. Martin LanghoffJun 7, 2006
  12. Linus TorvaldsJun 7, 2006

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.