Re: git-diff should not fire up $PAGER, period!
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 22, 2008, 08:30 UTC
- Message-ID
- <7vfxkgk3wr.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <494F47E1.8070105@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 8 quoted lines
> 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.