index  news

Modified 2005-06-11 19:28

xxdiff patches

xxdiff is a very nice graphical diff frontend which I use a lot. I've written a patch for xxdiff which adds a new menu, User, where it is possible to add your own commands to execute.

I use this menu in a script (svnxxdiff) which generates a directory-diff against the latest revision (or an earlier revision for that matter), which I find a very handy way of checking the latest changes. I then use an entry in the User menu to commit current modifications. The screenshot above shows the user menu and the script.

Download

The patch is against xxdiff 3.1 (Debian version 3.1-3) and can be downloaded here

xxdiff-user-menu.patch.txt

Usage

The entries in the User menu can be added from the GUI (see the screenshot below for an example). Remember to save the options if you want these commands permanently.

You can also add entries to the User menu manually in your ~/.xxdiffrc:

User.UserCommand1.Command: "rxvt -fg white -bg black -e svn commit %R"
User.UserCommand1.Title: "svn commit RIGHT"

There are three entries, UserCommand1, UserCommand2, and, UserCommand3 and Command specifies the command to execute while Title specifies the menu title. %L, %M, %R can be used as placeholders for left, middle and right filenames repectively.


To contact me, mail to the following address (decrypted):

ska[at]bth[dot]se