[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

"svn diff" vs "diff" - want diff to look like svn diff

From: Jeff Cave <jeff.cave_at_sunergon.com>
Date: 2003-06-18 20:18:12 CEST

This is a little off topic but it is driving me nuts and I don't know where else to turn.

I would like to have the output of gnu's "diff" to look like the output of "svn diff". Now I am basing this on the assumption that svn diff is based on diff and therefore should be able to produce the same output. For some reason, I can't get the right combination of switches to do this.

A list of the needed options for diff, or a good diff reference (not the man page, I already have that ;-), would be apreciated. I would also love a guide to what I can do with diff.

Example of what I am getting:

c:\dev> svn diff rate.src
Index: rate.src
--- rate.src (revision 4)
+++ rate.src (working copy)
@@ -13,6 +13,15 @@
 Widgets 12
-Dongles 113
+Dongles 13
 Dingles 14

c:\dev> diff ./rate.src ./.svn/text-base/rate.src.svn-base
< Dongles 13
> Dongles 113

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 18 20:26:17 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.