git-svn and svn:mime-type

From: Kevin Ballard <hidden>
Date: 2016-06-15 22:44:36

When adding a binary file with svn, svn:mime-type is set to  
application/octet-stream automatically. git-svn really should be able  
to do the same thing. I tried implementing it myself, but I got lost  
in the mess of perl that is git-svn.perl and couldn't figure out the  
right place to do it or how to properly detect if the new file is a  
binary file.

This is causing problems because when I commit a new binary file to  
the macports svn repo using git-svn, an email is sent out with a  
binary diff of the whole file, because the post-commit hook script on  
the svn repo uses svn:mime-type to determine if it's a binary file or  
a text file (which is all well and proper).

Any chance somebody who knows more perl or is more familiar with git- 
svn.perl could take a look at this?

-Kevin Ballard

-- 
Kevin Ballard
http://kevin.sb.org
kevin@sb.org
http://www.tildesoft.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help