git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Force usage of pager for diff, show, etc when piping to non-TTY
@ 2023-08-16  0:09 Patrick
  2023-08-16  2:57 ` Jeff King
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick @ 2023-08-16  0:09 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-17 20:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-16  0:09 Force usage of pager for diff, show, etc when piping to non-TTY Patrick
2023-08-16  2:57 ` Jeff King
2023-08-16 16:30   ` Patrick
2023-08-17  5:44     ` Jeff King
2023-08-17 17:06       ` Patrick
2023-08-17 19:47         ` Jeff King
2023-08-17 20:03           ` Patrick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).