banga / git-split-diffs

Syntax highlighted side-by-side diffs in your terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

core.pager override doesn't work well with `git log`

ymichael opened this issue · comments

I gave this a go and it works great for git show & git diff! But the core.pager override breaks git log for me.. it doesn't page anymore

Can you share more details? It works for me with git log -p (or regular git log, which doesn't include diffs).

To be clear, git-split-diffs doesn't implement paging, you need to pipe it through less. I do git config --global core.pager git-split-diffs --color | less -RFX

OH I need to do

 git config --global --replace-all core.pager 'git-split-diffs --color | less -RFX'

I see this:

➜  git config --global core.pager git-split-diffs --color | less -RFX
➜  git config --global --get core.pager
git-split-diffs
➜  git config --global --replace-all core.pager 'git-split-diffs --color | less -RFX'
➜  git config --global --get core.pager
git-split-diffs --color | less -RFX

Sorry I didn't think to do --get to debug this before making this issue!

Ah no worries!