Is there a command line switch to pass to git diff
and other commands that use the less
pager by default?
I know I can pipe it to cat, but that removes all the syntax highlighting.
I know I can set the pager in the global .gitconfig to cat by GITPAGER=cat
(or something like that); but I want to have pager sometimes (depending on the size of the diff).
But, I would prefer a command line switch if there is one; and I am not able to find one, going through the man pages.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…