提交 03fd5981 编写于 作者: S Stephen Celis 提交者: Chris Wanstrath

Honor $GIT_PAGER and git config core.pager.

上级 d8f47ba3
......@@ -282,7 +282,9 @@ help
# Wait until we have input before we start the pager
Kernel.select [STDIN]
pager = ENV['PAGER'] || 'less -isr'
pager = ENV['GIT_PAGER'] || `git config --get-all core.pager`.first ||
ENV['PAGER'] || 'less -isr'
exec pager rescue exec "/bin/sh", "-c", pager
else
# Child process
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册