I want to reproduce the pager behavior that git-diff uses but I don’t know how. Is there a way I could find out what options it uses with less?
I already tried this: strings "$(dirname $(which git-diff))/*" | grep 'less '
And this (while less was running): ps aux | grep less <= Didn’t show me which options it was using.
I’m on Darwin.
See the
git-configman page, specifically the description ofcore.pager. Also, you could inspect the environment of the pager process