Skip to content

Instantly share code, notes, and snippets.

@hectorh30
Created May 6, 2016 01:08
Show Gist options
  • Save hectorh30/8ca0d520cfc6e0019babc8c8221a9d96 to your computer and use it in GitHub Desktop.
Save hectorh30/8ca0d520cfc6e0019babc8c8221a9d96 to your computer and use it in GitHub Desktop.
Bat to use Meld with SVN over Windows
@ECHO OFF
REM Configure your favorite diff program here.
SET DIFF="C:\Program Files (x86)\Meld\Meld.exe"
REM Subversion provides the paths we need as the last two parameters.
REM These are parameters 6 and 7 (unless you use svn diff -x, in
REM which case, all bets are off).
SET LEFT=%6
SET RIGHT=%7
REM Call the diff command (change the following line to make sense for
REM your diff program).
%DIFF% %LEFT% %RIGHT%
REM Return an errorcode of 0 if no differences were detected, 1 if some were.
REM Any other errorcode will be treated as fatal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment