Updated 2018-05-02 15:39:35 by JOB
What tkdiff
Where http://sourceforge.net/projects/tkdiff/
Description TkDiff is a Tk based interface to the Unix diff command which provides highlighting of difference regions, side by side viewing of files, linked scrolling, random access to the difference regions, file merge, and online help. Requires Tcl/Tk. Also supports SCCS, RCS, and CVS, and Subversion. Built-in editor, find facility. Works with Tk 3.x,4.x and 8.x. Binaries are available for Windows and macOS.
Updated 2011-11-27 (version 4.2)

See also  edit

  • Were you instead looking for information on how one might implement diff in Tcl?
  • bindiff for comparing binary files.

Related software

  • AccuRev has TkDiff integrated
  • Eskil (see that page for a comparison from 2005)
  • tkcvs
  • YaDT - Yet another Diff Tool. It is another front-end for diff and in earlier versions diff3 utility. With YaDT you can compare and merge 2 and/or 3 files. YaDT is written in Tcl/Tk and wrapped in a single executable file with the help of sdx and tclkit. diff and cvs utilities are embedded inside YaDT. Also, YaDT supports Git and Mercurial repositories.
  • JOB: DirDiff has tkdiff 4.2 included, a single executable can be downloaded from here: http://www.johann-oberdorfer.eu/blog/2015/09/30/15-09-30_dirdiff


What Aegis
Where http://aegis.sourceforge.net/
Description Transaction based software configuration management (SCM) system. Provides software to coordinate and integrate the changing of software by a team of developers. Has a Tk interface, as well as a utility for interfacing to tkdiff.
Updated 2008-03 (version 4.24)


What wtkdiff ("weak" or "wayne's" tkdiff)
Where https://web.archive.org/web/19970103021236/http://sheol.org/throopw/wtkdiff.html
Description A different Tk wrapper around diff. It attempts to be a bit smaller, simpler, and more adaptable than TkDiff.
Updated 1996-06-19

Discussion  edit

escargo 28 Feb 2003 - When I downloaded tkdiff 3.09 and ran it on windows it blew up. The problem appears to be the grid commands at lines 5953 and 5967. They use a "-pad" argument that was not understood by my ActiveTcl 8.4.1 installation. Looking at HTML man pages as far back as tk 4.2, there was no "-pad" option. I don't know how this code worked before. Maybe there was a regression in tolerant code before, but I replaced the "-pad 4" with "-padx 4 -pady 4" and the application ran again.

ET 11oct2003 I am using 8.4.4 on Windows and found that the following is needed to use 3.09 (near the very end of the file)
    if {![llength [info commands tkCancelRepeat]]} {
       tk::unsupported::ExposePrivateCommand tkCancelRepeat
       tk::unsupported::ExposePrivateCommand tkTabToWindow
    }

before the call to main.

escargo 13 Nov 2003 - The correct function of tkdiff depends on the diff program that is used. I am using ActiveTcl 8.4.4, and I am running into problems with diff not behaving as the tkdiff program expects. The first problem was that temporary files were created in a file name that used the value of the environment variable TEMP (or perhaps TMP), which in Windows contains backslashes. When I temporarily put the temp directory as the volume root (that is, C:), diff failed differently. Is this a known problem? (Is there a known solution?)

LV What system and what diff are you using? That probably is the best place to begin. Also, you might sign up for the tkdiff mailing list - the experts there are most likely the ones most able to help.

escargo 14 Nov 2003 - I am using ActiveTcl 8.4.4 on Windows XP Pro Service Pack 1. The diff program is the diff.exe from the http://www.accurev.com/free/tkdiff/ page (which claims to be GNU diff 2.7, though diff 2.8.1 might be available now). I will also try the mailing list.

TSBG 2003-11-16 : I had the same problem. I have made a patched version of tkdiff-4.0b2 which you can get from http://homepage.hispeed.ch/tsbg/tkdiff-4.0b2.zip. Please try it out. The diff program from accurev works ok for me.

escargo 17 Nov 2003 - This solved the problem for me; there are certainly interesting differences between tkdiff 3.09 and 4.0b2. (Interestingly, the tkdiff.kit mentioned below has the same problem as 3.09.) - now fixed, thx -jcw -- The good news, it works now; the bad news, it's not cleaning up temporary files when it's done. - escargo

I've updated tkdiff.kit in sdarchive to 4.0b2 - when renamed to "tkdiff" and placed in the path, it works fine with Keith Vetter's Wiki History Diff script -jcw

escargo 26 Mar 2004 - The info button in the sdarchive has dates for 2002; that would seem to be out of date relative to the notice above. Plus, tkdiff 4.0 was announced on freshmeat.net on 25 Mar 2004. The starkit should be updated (and then this comment removed).

You might try updating the starkit yourself, then emailing jcw to ask whether he would like to have the updated version...

August 15 2004 - tkdiff on OSX 10.3.5

the big fat .dmg immediately exits on my OSX system, perhaps a clash with the built-in tcl?

Any rate, using the small tkdiff for unix and placing it in /usr/local/bin/tkdiff on OSX works just dandy, and starts up quickly.

Now I'm trying to fiddle with the source to make the window appear in the foreground and a lot larger...

- John Buckman mailto:[email protected]

LVwikignome - 2012-01-10 14:31:45

Is there a way to configure tkdiff to only display the specific difference within a line, rather than highlighting the entire line?

AK - 2012-01-10 16:22:47

While I don't believe that tkdiff is supporting the festure you are asking for, I know that eskil does, and has, IIRC, this mode of display active as default.

[pratiktamakuwala] - 2017-10-26 04:25:31

Can i include tkdiff in my starpack wherein if i call the tkdiff from my tcl application it works.

JOB - 2017-10-27 10:10:02

Including the source of tkdiff within a starpack would be possible, but:

  • as tkdiff relies on the external diff command (gnu diff.exe on windows) it won't work for all platforms.

Under windows you would need to copy diff.exe onto the vfs of the starkit and use another package, e.g. like: Executing programs which are shipped within starpacks to execute this supplemental command at runtime "from outsiede" the starkit. To get this to work, you need to slightliy change the orig. tkdiff code. I am using DirDiff [1] (as a starpack) where I have exactly the same problem and as a workaround I use the DirDiff.exe as well as the diff.exe all together stored in the same directory.