0

シンプルなシェル出力を持つ difftool を使用する場合、core.pager.gitconfig セクションで設定されたページャーを使用するにはどうすればよいですか?

4

1 に答える 1

3

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.

したがって、必要なのは[pager].gitconfig にセクションを追加してdifftool = trueそこに配置することだけです。

于 2013-12-04T21:08:54.270 に答える