mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Use temp buffer for output of any command for which the Git configuration option of pager.<command> is true. Avoid using a temp buffer if the value is false, even for commands like "show" where we normally would. If the configuration value is present and can't be interpreted as a Boolean, punt to a :terminal where Git will invoke it directly. Generate and use custom config dictionary that includes -c values passed to :Git. This enables `:Git -c pager.status status` to correctly use a pager. Paginate "config", "branch", and "tag" for certain argument lists, matching the logic found in the Git source code as closely as possible. These 3 commands were identified as having special pagination logic by the presence of the DELAY_PAGER_CONFIG flag on their definitions in git.c. Paginate "am --show-current-patch". References https://github.com/tpope/vim-fugitive/issues/1415