dot/gitconfig.in: Use `mdw-pager' rather than `less' explicitly.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 23 Aug 2019 16:34:22 +0000 (17:34 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 23 Aug 2019 16:34:22 +0000 (17:34 +0100)
I tripped over this because I was experimenting with alternative pagers.
Astonishingly, they all suck more than `less', so I'm stuck.

dot/gitconfig.in

index 0bc63d1..e73f4b7 100644 (file)
@@ -82,9 +82,9 @@
        external = --color=always
 
 [pager]
-       log = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less
-       show = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less
-       diff = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less
+       log = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager
+       show = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager
+       diff = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager
 
 [alias]
        egrep = "grep -E"