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

Re: git-diff should not fire up $PAGER, period!

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 17, 2008, 22:02 UTC
Message-ID
<7viqpijw92.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<8763lixyps.fsf_-_@jidanni.org>
jidanni@jidanni.org writes:
Show 7 quoted lines
> I mean here I am in emacs, and
>
> -*- mode: compilation; default-directory: "...coreutils/" -*-
> Compilation started at Thu Dec 18 03:15:14
> git-diff
> WARNING: terminal is not fully functional^M
> ^M-  (press RETURN)

Any semi-good emacs users (let alone hackers) export PAGER=cat to be used in compilation mode (and possibly shell mode), so this is not a problem in practice.

I have something like this in my .emacs:
    (setenv "PAGER" "cat")

I suspect (I am just a user not a hacker) this will have bad interaction with emacs terminal emulation mode, but I do not use the mode, so it is enough for me.

Previous: jidanni@jidanni.orgNext: Linus Torvalds
Message 7 of 13 in “git-diff should not fire up $PAGER if there is no diff”
  1. jidanni@jidanni.orgDec 16, 2008
  2. Jeff KingDec 16, 2008
  3. Stefan KarpinskiDec 16, 2008
  4. Jeff KingDec 16, 2008
  5. Stefan KarpinskiDec 16, 2008
  6. git-diff should not fire up $PAGER, period!jidanni@jidanni.org, Dec 17, 2008
  7. Junio C HamanoDec 17, 2008
  8. Linus TorvaldsDec 17, 2008
  9. Miles BaderDec 22, 2008
  10. Jeff KingDec 18, 2008
  11. Miles BaderDec 22, 2008
  12. Johannes SixtDec 22, 2008
  13. Junio C HamanoDec 22, 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.