Force usage of pager for diff, show, etc when piping to non-TTY
- From
- Patrick <patrickf3139@gmail.com>
- Date
- Aug 16, 2023, 00:09 UTC
- Message-ID
- <CAMRL+qYYGJ-LYG8qZpJOq+_=YO_C7JSTH4TPDpbEA4fRdANP7w@mail.gmail.com>
Hi,
I noticed there is no option I can pass to git to use the pager set in my gitconfig even when piping to non-TTY. Is there a workaround? If not, may I request this as a new feature?
Use case: integrate tools like Delta or diff-so-fancy when building wrappers around git commands. See https://github.com/dandavison/delta/discussions/840 and https://github.com/PatrickF1/fzf.fish/discussions/202 for examples.
Thanks, Patrick