You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Justin Patrin <pa...@gmail.com> on 2006/09/21 02:15:15 UTC

pre-commit hook with extension checking for binary files

I've taken a pre-commit hook written by Jacques Marneweck and added
checking of file extensions to make sure that files with a binary
extension (pdf, fla, etc) are added with an svn:mime-type of
application/octet-stream. This helps quite a bit for those of us using
svnnotify.

http://pear.reversefold.com/dokuwiki/doku.php?id=svn:pre-commit

-- 
Justin Patrin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: pre-commit hook with extension checking for binary files

Posted by Justin Patrin <pa...@gmail.com>.
On 9/21/06, Karl Fogel <kf...@google.com> wrote:
> "Justin Patrin" <pa...@gmail.com> writes:
> > I've taken a pre-commit hook written by Jacques Marneweck and added
> > checking of file extensions to make sure that files with a binary
> > extension (pdf, fla, etc) are added with an svn:mime-type of
> > application/octet-stream. This helps quite a bit for those of us using
> > svnnotify.
> >
> > http://pear.reversefold.com/dokuwiki/doku.php?id=svn:pre-commit
>
> Wouldn't you want application-specific MIME types for those things?
> E.g., "application/pdf" and so on?
>

I suppose so, I just never thought of that. (I'm not really sure what
utility making such a change would have...) All I was trying to do was
make sur ebinary files showed up as binary in our commit e-mails. ;-)

-- 
Justin Patrin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: pre-commit hook with extension checking for binary files

Posted by Karl Fogel <kf...@google.com>.
"Justin Patrin" <pa...@gmail.com> writes:
> I've taken a pre-commit hook written by Jacques Marneweck and added
> checking of file extensions to make sure that files with a binary
> extension (pdf, fla, etc) are added with an svn:mime-type of
> application/octet-stream. This helps quite a bit for those of us using
> svnnotify.
>
> http://pear.reversefold.com/dokuwiki/doku.php?id=svn:pre-commit

Wouldn't you want application-specific MIME types for those things?
E.g., "application/pdf" and so on?

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org