如果我使用具有简单shell输出的difftool,如何使用在core.pager
.gitconfig部分中设置的寻呼机?
答案 0 :(得分:2)
git help config
说:
pager.<cmd>
If the value is boolean, turns on or off pagination of the output of a particular
git subcommand when writing to a tty. Otherwise, turns on pagination for the
subcommand using the pager specified by the value of pager.<cmd>. If --paginate or
--no-pager is specified on the command line, it takes precedence over this option.
To disable pagination for all commands, set core.pager or GIT_PAGER to cat.
所以您只需要在.gitconfig中添加[pager]
部分并将difftool = true
放在那里。