I'm not sure how you'd diff those sorts of things. What would you imagine the output would be?
On the other hand, you can use any preview command you like with fzf like
fzf
branch="$(git branch -a | grep -oE '[^ ]+$' | fzf --preview='git show --color=always --stat {}; printf "\n\n"; git diff --name-only {}')"
which would give you a show and then follow it with a list of all the files which differ between the selected and the current branch.
show
Sorry for the noise. I found the answer here:
stackoverflow.com/questions/348853...
There would be no output, just the executive of the configured difftool.
Try executing:
git difftool HEAD~1..HEAD
And you will receive the intended behavior for the last commit of the branch.
If you install meld or another well know visual difftool for will recognize it.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm not sure how you'd diff those sorts of things. What would you imagine the output would be?
On the other hand, you can use any preview command you like with
fzf
likewhich would give you a
show
and then follow it with a list of all the files which differ between the selected and the current branch.Sorry for the noise. I found the answer here:
stackoverflow.com/questions/348853...
There would be no output, just the executive of the configured difftool.
Try executing:
git difftool HEAD~1..HEAD
And you will receive the intended behavior for the last commit of the branch.
If you install meld or another well know visual difftool for will recognize it.