0

Is there any way to make svn diff command ignore some specific lines in a source code file, so consider this as not a changes?

4
  • Particular line numbers or particular line contents? Note that you can use --diff-cmd to specify the command used to do the diffing, so you could always write your own diff command. Commented Aug 8, 2012 at 8:35
  • Well I think this is the only solution. Commented Aug 8, 2012 at 8:36
  • Can you give a bit more detail of what you're trying to do? Another possibility would be post-processing the output to remove the lines you don't care about (eg svn diff | grep -v foo). Commented Aug 8, 2012 at 8:38
  • Basically, I need to ignore lines in some specific file with changes located only in expressions like "line=123". This changes are not giving any useful information when I see svn diff output, so I'd like to make svn diff ignore such changes. Commented Aug 8, 2012 at 8:42

1 Answer 1

1

You can only ignore white spaces. Read the svn manual for more information: http://svnbook.red-bean.com/en/1.7/svn.ref.svn.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.