A diff tool is any program (such as Unix 'diff', WinMerge, KDiff, etc.) which can perform a comparison between two or more files.
Questions tagged [difftool]
24 questions
89
votes
6 answers
How can I diff binary files in git?
In order to diff binary files in git, I assume I need to set up a difftool.
What difftools work? How do you put the parameters in?
Nick Retallack
- 2,086
28
votes
1 answer
Kaleidoscope for git difftool
I tried using kaleidoscope for git difftool to compare two branches.
So I installed ksdiff and setted it like follow in my .gitconfig
[diff]
tool = kaleidoscope
[difftool "kaleidoscope"]
cmd = ksdiff --changeset $(cd $(dirname "$LOCAL")…
svassr
- 1,501
11
votes
2 answers
git diff --no-index but with multiple files
I really like git diff's output format, and I use it a lot as git diff --no-index to compare arbitrary non-git-related files. But as far as I can tell when using --no-index you can provide only a single pair of files. I'd really like to be able to…
alecbz
- 368
9
votes
1 answer
How to show the exact difference of words in WinMerge?
Can I setup WinMerge so that it shows me the exact difference of single words?
Up to now the whole word/phrase is highlighted, even if only one character is different (see picture for an example).
The URL in line 11 is highlighted completely, even…
5
votes
2 answers
How do I suppress output with fc when there are no differences
I want to compare a bunch of files in a cmd.exe batch file using fc. Unfortunately, fc reports for every pair of compared files that it didn't find any differences if there are no differences. How can I change that behaviour so that it stays silent…
René Nyffenegger
- 2,444
5
votes
3 answers
Various methods of trying to set up a git diff tool lead to "fatal: cannot exec [...] : Bad address"
I'm on Linux Mint 17 64-bit. Just purged git and re-installed with apt. Deleted ~/.gitconfig. Only configuration I do after supposedly fresh install is (while inside a repo)
git config diff.tool vimdiff
Then I run
git difftool…
user354932
- 51
4
votes
1 answer
Setting TextMate 2 as Git's difftool
Is it possible to set TextMate 2 as the default Git difftool/mergetool?
If so, what are the commands?
I have found instructions for the diffmerge tool here, but I would like to try it with text mate, but I know that are the commands to use.
I am…
Tiago Veloso
- 1,090
3
votes
5 answers
How to more efficiently use Tortoise SVN diff for large Excel files?
I was pleasantly surprised to find that Tortoise SVN diff lets me find the diff between two excel files. The cell which is different is highlighted in red. It works for small excel files.
But I have Excel sheets which have thousands of rows and…
Noel
- 31
2
votes
0 answers
How can I interactively diff large binary files?
I'm trying to compare hex-dumps of some 500GB disk images. I can easily view parts of the files by piping hd into less. I'd like something similar to interactively diff them without having to read the entire files.
I'd like to manually examine the…
Wes Toleman
- 231
2
votes
3 answers
Diff tool for finding a minimal set of changes
I have two versions of a text file, with many changes (including whitespace, linebreak differences, etc.). All of the diff tools I have tried (diff, diff --minimal, wdiff, kdiff3, meld) fail spectacularly to even come close to properly aligning the…
John Pardon
- 187
2
votes
2 answers
How to use Winmerge for archive compare
I need to compare jar files (i.e. zip files) with java files in it.
My WinMerge v. 2.14.0.0 Unicode refuses to work with my 7-zip v. 16.04 [64 bit]. The official guide did not help. Is there any exact instructions to compare archives with WinMerge?
Loom
- 385
1
vote
2 answers
The safest way to check if files are identical
I'm looking for a command line tool to check if files are the same or not, I know there are "fc" and "comp" but I'm not sure which is better or if they are safe or not.
I have different files in different formats (txt, kdbx, keyx, png, rar) so I…
amymor
- 75
1
vote
0 answers
How can I batch compare a directory of files to their copies in a different directory?
I copied the files of an entire hard drive to a separate folder, so the contents of the drive and the folder are identical. However, the transfer was interrupted a few times, so I would like to find a way to binary compare the two directories. I am…
Jimmy Bungalo
- 113
1
vote
0 answers
How to configure git to use meld for diff & merge
Running Windows 11.
Trying to configure meld as a diff/merge tool used with git the same way I'm using it under Linux.
Meld launches OK via git difftool --dir-diff, but looks like it fails to read/write into/from the temporary locations:
There was a…
laur
- 238
- 1
- 2
- 17
1
vote
0 answers
How to make kdiff3 less verbose
I installed kdiff3 on Kubuntu 22.04 LTS and noticed it is quite chatty:
$ kdiff3 --version
kdiff3 1.9.5 (64 bit)
$ touch file1 file2
$ kdiff3 file1 file2
org.kde.kdiff3: "Loading A: .../file1"
org.kde.kdiff3: "Loading B: .../file2"
org.kde.kdiff3:…
user829755
- 836