Merge branch 'jc/unexport-git-pager-in-use-in-pager' into maint
commit342c14db8c1c570f24993c44d7687e541537d6bc
authorJunio C Hamano <gitster@pobox.com>
Mon, 27 Jul 2015 19:21:43 +0000 (27 12:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Jul 2015 19:21:44 +0000 (27 12:21 -0700)
treeb06b645ceb09edb8377557f4a0d9a686d82caf6b
parent3b175fb940ba970a840cbef3e1e354163838d0eb
parent124b51909dab82151dff8ae8fd3a588a8846c7ac
Merge branch 'jc/unexport-git-pager-in-use-in-pager' into maint

When you say "!<ENTER>" while running say "git log", you'd confuse
yourself in the resulting shell, that may look as if you took
control back to the original shell you spawned "git log" from but
that isn't what is happening.  To that new shell, we leaked
GIT_PAGER_IN_USE environment variable that was meant as a local
communication between the original "Git" and subprocesses that was
spawned by it after we launched the pager, which caused many
"interesting" things to happen, e.g. "git diff | cat" still paints
its output in color by default.

Stop leaking that environment variable to the pager's half of the
fork; we only need it on "Git" side when we spawn the pager.

* jc/unexport-git-pager-in-use-in-pager:
  pager: do not leak "GIT_PAGER_IN_USE" to the pager
pager.c