git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Message 1 of 1 in “git-svn and svn:mime-type”
  1. Kevin BallardMay 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.