Ignore whitespace in a Subversion diff
$ svn diff --diff-cmd diff -x -uw /path/to/file
Solution copied from Ignore whitespace in a Subversion diff
a christian web developer’s random writings
Posts tagged ‘svn’
$ svn diff --diff-cmd diff -x -uw /path/to/file
Solution copied from Ignore whitespace in a Subversion diff
As a programmer, I’ve been using find to locate string in my source code. Issuing a find would include svn files too which is not my intension. Here’s the command:
$ find . -not -regex ‘.*svn.*’ -exec grep “$1″ ‘{}’ \; -print
Add multiple files to svn repository
$ svn st | grep ^? | cut -b7- | xargs svn add
Windows:
Save the following to the folder to clean to a filename with a .cmd extension (cleansvn.cmd). After that issue the command, eg., C:\www>cleansvn
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *svn') do ( rd /s /q "%%i" )
Linux:
Cleaning a svn folder:
find . -name .svn -exec rm -rf {} \;
Using svn export:
Export from your working copy (doesn’t print every file and directory):
$ svn export a-wc my-export
Export complete.
Export directly from the repository (prints every file and directory):
$ svn export file:///var/svn/repos my-export
A my-export/test
A my-export/quiz
…
Exported revision 15.