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

Re: (minor concern) git using the pager should not be a default

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 29, 2012, 17:50 UTC
Message-ID
<7vd329wpt0.fsf@alter.siamese.dyndns.org>
In-Reply-To
<503E3CFE.1080603@sigmadesigns.com>
Emmanuel Michon <emmanuel_michon@sigmadesigns.com> writes:
> I believe UNIX recommends some rules in the «less is more» spirit when
> designing command line applications [basically listed here:
> http://en.wikipedia.org/wiki/Unix_philosophy].

That is exactly why our plumbing layer of commands (e.g. "git diff-tree", "git rev-list") do not page by default for people who want to go bare-metal Unix philosophy.

In other words, Porcelain (roughly speaking, those that page by default when their standard output is terminal), are not "command line applications"; they have a layer on top with a built-in UI.

If you follow Unix philosophy and want to combine tools each of which is designed to do one thing and one thing well, you would be using the commands from the plumbing layer to write your scripts, and wouldn't have to raise that "minor concern" in the first place, as they do not page by default ;-).

Previous: Junio C HamanoNext: dag@cray.com
Message 3 of 8 in “(minor concern) git using the pager should not be a default”
  1. Emmanuel MichonAug 29, 2012
  2. Junio C HamanoAug 29, 2012
  3. Junio C HamanoAug 29, 2012
  4. dag@cray.comAug 31, 2012
  5. Andreas SchwabAug 31, 2012
  6. Jeff KingAug 31, 2012
  7. dag@cray.comAug 31, 2012
  8. Junio C HamanoAug 31, 2012

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.