SVN Create a Patch with Kaleidoscope

So here’s the sitch yo:

You have kaleidoscope as your diff tool. You go to make a patch:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual”]

svn diff > ~/Desktop/my-cool-diff.patch

[/pastacode]

Then you realize that it’s opening kaleidoscope instead and not exporting your diff to a file.

Well the problem is you’re using the wrong program. Do something like this:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual”]

svn diff --diff-cmd /usr/bin/diff -x "" > ~/Desktop/modal-fix.patch

[/pastacode]

Now you’re using the right diff tool!

Then you can apply the patch like this:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual”]

svn patch ~/Desktop/my-cool-diff.patch

[/pastacode]

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.