Yikes, needed this today:
$ git clone https://github.com/git/git
Fortunately git source is pretty readable and I found what I needed pretty quickly (difftastic can offer colour when GIT_PAGER_IN_USE is set).
miniblog.
Related Posts
Interesting idea from a discussion around limiting rustc error output: why don't compilers use a pager when there are a lot of errors? Git uses this for large output and it works well there.
(origin: https://github.com/rust-lang/rust/issues/27189#issuecomment-291420407)