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

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

From
EMEmmanuel Michon <emmanuel_michon@sigmadesigns.com>
Date
Aug 29, 2012, 16:02 UTC
Message-ID
<503E3CFE.1080603@sigmadesigns.com>
Hello,

I'm risking myself on this mailing list after looking for some advise on IRC. Basically I know about this previous attempt http://marc.info/?l=git&m=122955045415845&w=2 but my request has little to do with emacs.

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].

As far as I understand those, stdin/out/err would be better left with minimum processing. Silent execution with $? = 0 is the best thing that can happen.

Per those rules, which I think apply to Linux apps, it would be preferrable if the *default* setup of git didn't fork a pager, didn't use colors, didn't behave differently whether piped or not.

Of course I would be the first to always call the tool with git diff |less excepted when I do git diff |diffstat or enjoy such options as command line or environment switches to git. when I want.

So the point is more about the appropriateness of pushing that special ergonomy to all users, knowing it makes most users happy.

Isn't the design principle superior to the wishes of the masses?

Thanks for reading, Don't laugh, Keep on the good work.

Sincerely yours,
e.m.
Next: Junio C Hamano
Message 1 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.