All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Johannes Sixt <j.sixt@viscovery.net>
Cc: Miles Bader <miles@gnu.org>, jidanni@jidanni.org, git@vger.kernel.org
Subject: Re: git-diff should not fire up $PAGER, period!
Date: Mon, 22 Dec 2008 00:30:44 -0800	[thread overview]
Message-ID: <7vfxkgk3wr.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <494F47E1.8070105@viscovery.net> (Johannes Sixt's message of "Mon, 22 Dec 2008 08:55:13 +0100")

Johannes Sixt <j.sixt@viscovery.net> writes:

> Miles Bader schrieb:
>> Just (setenv "PAGER" "cat") in .emacs.
>> 
>> [I actually have it set to /bin/cat, not sure if that's meaningful or not.]
>
> No, really, you should set it to plain "cat": As a special case git
> recognizes this token and does not run any pager. If you set it to
> "/bin/cat" it does run a pager, namely /bin/cat.

But that would not hurt ;-).

On the other hand, using PAGER=cat or PAGER=/bin/cat is the right thing to
do in compilation and shell modes in Emacs, regardless of your use of git.

  reply	other threads:[~2008-12-22  8:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-16  0:21 git-diff should not fire up $PAGER if there is no diff jidanni
2008-12-16  0:56 ` Jeff King
2008-12-16  6:35   ` Stefan Karpinski
2008-12-16  7:44     ` Jeff King
2008-12-16 22:43       ` Stefan Karpinski
2008-12-17 21:45   ` git-diff should not fire up $PAGER, period! jidanni
2008-12-17 22:02     ` Junio C Hamano
2008-12-17 22:04     ` Linus Torvalds
2008-12-22  3:28       ` Miles Bader
2008-12-18  3:31     ` Jeff King
2008-12-22  3:27     ` Miles Bader
2008-12-22  7:55       ` Johannes Sixt
2008-12-22  8:30         ` Junio C Hamano [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-12-18  2:18 Mike Coleman
2008-12-18  2:26 ` Junio C Hamano
2008-12-18  3:22 ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vfxkgk3wr.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=j.sixt@viscovery.net \
    --cc=jidanni@jidanni.org \
    --cc=miles@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.