I often use this command line that works great on Subversion 1.6.11 and GNU diff 2.8.1.
svn diff -x '--unified --ignore-space-change --ignore-all-space --ignore-eol-style --show-c-function' --no-diff-deleted my-file | vim -
However I want to increase the context lines using the diff
option --unified=40
but all my attempts fail:
$ svn diff -x '--unified=40' my-file
svn: Error parsing diff options: Missing parameter for the specified command line option
$ svn diff -x '--unified 40' my-file
svn: Invalid argument '40' in diff options
$ svn diff -x '--unified\=40' my-file
svn: Error parsing diff options: Bad character specified on command line
$ svn diff -x '-u 40' my-file
svn: Invalid argument '40' in diff options
$ svn diff -x '-u=40' my-file
svn: Error parsing diff options: Bad character specified on command line
$ svn diff -x '-U' my-file
svn: Error parsing diff options: Bad character specified on command line
I also want to ignore changes in comment lines using the diff
option --ignore-matching-lines='^[ \t]*#'
but same errors.
Is there a workaround to this svn diff -x
issue?