Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to view complete git diff using a GUI tool?

Is there a combination of a GUI diff viewer and a git configuration that would allow me to view all modified files at once? Currently I use git difftool and it invokes a separate diff viewer for each file. It would be great if there was a way to force git to put both versions of all modified files somewhere and invoke the diff tool for all of them only once.


2 Answers

With svn I use KDE "kompare" program to view all files at ones.

Like here:

svn diff > output
kompare output

or directly:

svn diff | kompare

also there are Gnom "meld", which supposed to do the same thing (but I didn't tried it yet).

The same should be applicable for git.

like image 127
klm123 Avatar answered Dec 16 '25 06:12

klm123


Since git 1.7.11, difftool supports directory comparison:

"git difftool" learned the "--dir-diff" option to spawn external diff tools that can compare two directory hierarchies at a time after populating two temporary directories, instead of running an instance of the external tool once per a file pair.

So you could combine it with an external diff tool, as mentioned in "use Winmerge inside of Git to file diff".

like image 36
VonC Avatar answered Dec 16 '25 07:12

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!