git-svn and svn:mime-type
- From
Kevin Ballard <kevin@sb.org>
- Date
- May 14, 2008, 05:46 UTC
- Message-ID
- <BC05465E-C3A1-49C7-9721-FE5AB822C42E@sb.org>
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