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 18, 2008, 02:26 UTC
Message-ID
<7vy6yei5ha.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<3c6c07c20812171818k6b6e3555ja991e20d74d8291b@mail.gmail.com>
"Mike Coleman" <tutufan@gmail.com> writes:
Show 6 quoted lines
> To me, the most important nugget from the original complaint was that
> git-diff sends its error messages to stdout.  I understand why it
> might be done, but I'd worry about losing the stderr diagnostic for a
> command that matters.  [I've been playing around with this for a few
> minutes trying to see errors going to stdout and I can't reproduce
> it--I wonder if they really do.]

They indeed did but it has hopefully been fixed. See a833502 (pager: do not dup2 stderr if it is already redirected, 2008-12-15).

> ...  Like Junio, I also eschew doing terminal emulation
> inside of emacs.

Come to think of it, it may have been from you that I picked up the trick of setting PAGER to cat inside an Emacs environment.

> Good evening from the icy midwest,
Good evening from rainy and chilly SoCal.
Previous: Mike ColemanNext: Johannes Schindelin
Message 2 of 3 in “Re: git-diff should not fire up $PAGER, period!”
  1. Mike ColemanDec 18, 2008
  2. Junio C HamanoDec 18, 2008
  3. Johannes SchindelinDec 18, 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.