Skip to content

Commit

Permalink
feat(git.plugin): adding alias to open predefined difftool
Browse files Browse the repository at this point in the history
Useful for visual side by side diff VIA external difftool. Here is an example for meld: https://stackoverflow.com/questions/2006032/view-differences-of-branches-with-meld
  • Loading branch information
Tal Lederman authored and akinomyoga committed May 14, 2023
1 parent 6d62b33 commit bd7b301
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/git/git.plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ alias gdca='command git diff --cached'
alias gdct='command git describe --tags `git rev-list --tags --max-count=1`'
alias gdt='command git diff-tree --no-commit-id --name-only -r'
alias gdw='command git diff --word-diff'
alias gdtool='command git difftool -d'

function gdv {
command git diff -w "$@" | view -
Expand Down

0 comments on commit bd7b301

Please sign in to comment.