0

Current git branch I'm using is X.

I Would like to use installed difftool (in my case, kdiff3) in order to diff X against branch Y-specific commit.

e.g. git difftool branch_X..branch_Y$commit_hash --tool=kdiff3

What is the correct syntax to achieve this?

Thanks

Adiel
  • 1,203
  • 3
  • 18
  • 31
  • Per [the documentation](https://www.kernel.org/pub/software/scm/git/docs/git-difftool.html), it would be `git difftool --tool=kdiff3 branch_X $commit_hash`. – torek Mar 08 '17 at 08:09
  • Thanks, If you could post as an answer i'll accept it – Adiel Mar 08 '17 at 08:17
  • And extending it to diff a specific file ? :) – Adiel Mar 08 '17 at 08:21
  • @Adiel: `git difftool` takes the same arguments as git diff : `git difftool A B -- file1 file2` – LeGEC Mar 08 '17 at 08:25
  • Possible duplicate of [git - set KDiff3 as default mergetool](http://stackoverflow.com/questions/42611783/git-set-kdiff3-as-default-mergetool) – kowsky Mar 08 '17 at 08:25
  • kowsky, how is my question is a duplicate? I didn't ask how to use kdiff3 by default – Adiel Mar 08 '17 at 12:13

0 Answers0