如何设置difftool以使用寻呼机

时间:2013-12-04 21:08:54

标签: git difftool

如果我使用具有简单shell输出的difftool,如何使用在core.pager .gitconfig部分中设置的寻呼机?

1 个答案:

答案 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放在那里。