2022-03-31 16:08:09 +02:00
|
|
|
function gdd --description "Use difftastic as a difftool"
|
2023-02-25 12:57:38 +01:00
|
|
|
if count $argv >/dev/null
|
|
|
|
git difftool --tool=difftastic $argv
|
|
|
|
else
|
|
|
|
set default (git symbolic-ref refs/remotes/origin/HEAD | awk -F'/' '{print $4}')
|
|
|
|
set current (git branch --show-current)
|
|
|
|
git difftool --tool=difftastic $default...$current
|
|
|
|
end
|
2022-03-31 16:08:09 +02:00
|
|
|
end
|