Wiki source for SubVersionDiff
===Subversion Differences===
==diff==
Svn difference between the BASE revision of the file that you checked out and your current local file
%%
$ svn diff myfile.php
%%
If svn "status --show-updates" is showing file has changed but you cant see any local differences you may need to force svn diff to compare your local copy with the current HEAD revision in svn repo
%%
$ svn diff -rHEAD myfile.php
%%
==diff ignoring blank lines and white space==
If you want svn diff to use a different external diff command so you can ignore blank lines, whitespace etc then you'll need tio use svn diff --diff-cmd and --extensions switches
%%
$ svn diff --diff-cmd diff --extensions "--ignore-blank-lines --ignore-all-space" myfile.php
%%
since this is a lot to type you probably want to create some aliases
%%
$ alias svndiff='svn diff --diff-cmd diff --extensions "--ignore-blank-lines --ignore-all-space"'
$ alias svndiffsbs='svn diff --diff-cmd diff --extensions "--ignore-blank-lines --ignore-all-space --side-by-side --suppress-common-lines"'
%%
----
REFERRERS
{{backlinks}}
==diff==
Svn difference between the BASE revision of the file that you checked out and your current local file
%%
$ svn diff myfile.php
%%
If svn "status --show-updates" is showing file has changed but you cant see any local differences you may need to force svn diff to compare your local copy with the current HEAD revision in svn repo
%%
$ svn diff -rHEAD myfile.php
%%
==diff ignoring blank lines and white space==
If you want svn diff to use a different external diff command so you can ignore blank lines, whitespace etc then you'll need tio use svn diff --diff-cmd and --extensions switches
%%
$ svn diff --diff-cmd diff --extensions "--ignore-blank-lines --ignore-all-space" myfile.php
%%
since this is a lot to type you probably want to create some aliases
%%
$ alias svndiff='svn diff --diff-cmd diff --extensions "--ignore-blank-lines --ignore-all-space"'
$ alias svndiffsbs='svn diff --diff-cmd diff --extensions "--ignore-blank-lines --ignore-all-space --side-by-side --suppress-common-lines"'
%%
----
REFERRERS
{{backlinks}}