How change Subversion's default binary mime-type?

Posted by lamcro on Stack Overflow See other posts from Stack Overflow or by lamcro
Published on 2010-06-10T15:37:26Z Indexed on 2010/06/10 16:03 UTC
Read the original article Hit count: 309

Filed under:
|
|
|

Subversion sets a binary file's svn:mime-type property to application/octet-stream by default.

I need to change this default to some other mime-type. When I import for the first time this code, I would like Subversion to set mime-type to the one I choose.

The reason is that my code base contains code in binary files (proprietary format), and I have the applications necessary to emulate diff and diff3 for these. But Subversion does not let me due to their default mime-type.

Please note: There is no default extension (*.jar, *.py, etc) for these code files. Some files don't even have an extension. So configuring mime-type by file extension is not possible.

© Stack Overflow or respective owner

Related posts about svn

Related posts about binary