From: Patrick <patrickf3139@gmail.com>
To: git@vger.kernel.org
Subject: Force usage of pager for diff, show, etc when piping to non-TTY
Date: Tue, 15 Aug 2023 17:09:13 -0700 [thread overview]
Message-ID: <CAMRL+qYYGJ-LYG8qZpJOq+_=YO_C7JSTH4TPDpbEA4fRdANP7w@mail.gmail.com> (raw)
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
next reply other threads:[~2023-08-16 0:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-16 0:09 Patrick [this message]
2023-08-16 2:57 ` Force usage of pager for diff, show, etc when piping to non-TTY 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMRL+qYYGJ-LYG8qZpJOq+_=YO_C7JSTH4TPDpbEA4fRdANP7w@mail.gmail.com' \
--to=patrickf3139@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).