Created
July 3, 2024 02:18
-
-
Save kmatt/4ee3c24ab077ae556fb15563fd08469b to your computer and use it in GitHub Desktop.
Delta diffs in Tig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# View diffs using delta | |
# Via https://github.com/jonas/tig/issues/26#issuecomment-1923835137 | |
bind diff D >sh -c "git show %(commit) | delta --paging always" | |
bind diff S >sh -c "git show %(commit) | delta --paging always --side-by-side" | |
bind stage D >sh -c "git diff HEAD -- %(file) | delta --paging always" | |
bind stage S >sh -c "git diff HEAD -- %(file) | delta --paging always --side-by-side" | |
bind status D >sh -c "git diff HEAD -- %(file) | delta --paging always" | |
bind status S >sh -c "git diff HEAD -- %(file) | delta --paging always --side-by-side" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment