How do I tell svn not to diff certain file types when I type “svn diff”?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Set the svn:mime-type of the file to it’s correct value (or a value associated with binary data). This will disable “svn diff” textual output and only print if the files differ.
Since it is version control, you are never going to get it to completely ignore if the files differ; because, you asked it if they differed, it tracks versions, and you included that file in the ones you are scanning.
The mime type for “a general bag of bytes” is application/octet-stream, but you might have a more appropriate setting if it’s a jpeg file, etc.