eth-p / bat-extras

Bash scripts that integrate bat with various command line tools.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

batdiff: doesn't really support staged diffs.

infinityat0 opened this issue · comments

commented

batdiff only shows diffs that are not staged on git. Would be nice to have an option to check out staged diffs as well.

Added in 7aa73f8.

I really recommend that you install delta if you plan on using it, though. Bat can't natively display diffs from staged files, which means batdiff has to display them as patch files. And that's not exactly pretty, unfortunately.