SVN Properties and MIME Types

Here is a table of MIME types and other properties for the [auto-props] section of SVN config file.

The table is biased in favour of the file types that I use, and the settings that I prefer. It does include

  • C++
    • (including MSDEV)
  • some script, shell and other languages
  • XML
  • OpenOffice.org files
  • Mi¢ro$oft Office files
  • some compressed formats
  • some bitmap image formats
  • some executable file types

I’m sorry the following table is a bit too wide, but it is intended as a compromise between easy reference and easy copy-and-paste.

# *.* = svn:eol-style ; svn:executable ; svn:keywords ; svn:mime-type ; svn:needs-lock
*.bat = svn:eol-style=CRLF ; svn:executable
*.bmp = svn:mime-type=image/bmp ; svn:needs-lock
*.bz2 = svn:mime-type=application/x-bzip2 ; svn:needs-lock
*.c = svn:eol-style=native ; svn:keywords=Rev ; svn:mime-type=text/plain
*.cmd = svn:eol-style=CRLF ; svn:executable ; svn:mime-type=application/bat
*.cpp = svn:eol-style=native ; svn:keywords=Rev ; svn:mime-type=text/plain
*.css = svn:mime-type=text/css
*.dll = svn:executable ; svn:mime-type=application/x-msdownload
*.doc = svn:mime-type=application/msword ; svn:needs-lock
*.docm = svn:mime-type=application/vnd.ms-word.document.macroEnabled.12 ; svn:needs-lock
*.docx = svn:mime-type=application/vnd.openxmlformats-officedocument.wordprocessingml.document ; svn:needs-lock
*.dot = svn:mime-type=application/msword ; svn:needs-lock
*.dotm = svn:mime-type=application/vnd.ms-word.template.macroEnabled.12 ; svn:needs-lock
*.dotx = svn:mime-type=application/vnd.openxmlformats-officedocument.wordprocessingml.template ; svn:needs-lock
*.dsp = svn:eol-style=CRLF
*.dsw = svn:eol-style=CRLF
*.dvi = svn:mime-type=application/x-dvi
*.exe = svn:executable ; svn:mime-type=application/octet-stream
*.gif = svn:mime-type=image/gif ; svn:needs-lock
*.gz = svn:mime-type=application/x-gzip ; svn:needs-lock
*.h = svn:eol-style=native ; svn:keywords=Rev ; svn:mime-type=text/plain
*.hpp = svn:eol-style=native ; svn:mime-type=text/plain
*.html = svn:mime-type=text/html
*.jpg = svn:mime-type=image/jpeg ; svn:needs-lock
*.js = svn:mime-type=application/x-javascript
# *.mak = svn:eol-style=native
*.mdb = svn:mime-type=application/x-msaccess ; svn:needs-lock
*.mpp = svn:mime-type=application/vnd.ms-project ; svn:needs-lock
*.msg = svn:mime-type=application/vnd.ms-outlook ; svn:needs-lock
*.odb = svn:mime-type=application/vnd.oasis.opendocument.database ; svn:needs-lock
*.odc = svn:mime-type=application/vnd.oasis.opendocument.chart ; svn:needs-lock
*.odf = svn:mime-type=application/vnd.oasis.opendocument.formula ; svn:needs-lock
*.odg = svn:mime-type=application/vnd.oasis.opendocument.graphics ; svn:needs-lock
*.odi = svn:mime-type=application/vnd.oasis.opendocument.image ; svn:needs-lock
*.odm = svn:mime-type=application/vnd.oasis.opendocument.text-master ; svn:needs-lock
*.odp = svn:mime-type=application/vnd.oasis.opendocument.presentation ; svn:needs-lock
*.ods = svn:mime-type=application/vnd.oasis.opendocument.spreadsheet ; svn:needs-lock
*.odt = svn:mime-type=application/vnd.oasis.opendocument.text ; svn:needs-lock
*.otg = svn:mime-type=application/vnd.oasis.opendocument.graphics-template ; svn:needs-lock
*.oth = svn:mime-type=application/vnd.oasis.opendocument.text-web ; svn:needs-lock
*.otp = svn:mime-type=application/vnd.oasis.opendocument.presentation-template ; svn:needs-lock
*.ots = svn:mime-type=application/vnd.oasis.opendocument.spreadsheet-template ; svn:needs-lock
*.ott = svn:mime-type=application/vnd.oasis.opendocument.text-template ; svn:needs-lock
*.oxt = svn:mime-type=application/vnd.openofficeorg.extension ; svn:needs-lock
*.pbm = svn:mime-type=image/x-portable-bitmap ; svn:needs-lock
*.pdf = svn:mime-type=application/pdf ; svn:needs-lock
*.pgm = svn:mime-type=image/x-portable-graymap ; svn:needs-lock
*.png = svn:mime-type=image/png ; svn:needs-lock
*.pnm = svn:mime-type=image/x-portable-anymap ; svn:needs-lock
*.pot = svn:mime-type=application/vnd.ms-powerpoint ; svn:needs-lock
*.potm = svn:mime-type=application/vnd.ms-powerpoint.presentation.macroEnabled.12 ; svn:needs-lock
*.potx = svn:mime-type=application/vnd.openxmlformats-officedocument.presentationml.template ; svn:needs-lock
*.ppa = svn:mime-type=application/vnd.ms-powerpoint ; svn:needs-lock
*.ppam = svn:mime-type=application/vnd.ms-powerpoint.addin.macroEnabled.12 ; svn:needs-lock
*.ppm = svn:mime-type=image/x-portable-pixmap ; svn:needs-lock
*.pps = svn:mime-type=application/vnd.ms-powerpoint ; svn:needs-lock
*.ppsm = svn:mime-type=application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ; svn:needs-lock
*.ppsx = svn:mime-type=application/vnd.openxmlformats-officedocument.presentationml.slideshow ; svn:needs-lock
*.ppt = svn:mime-type=application/vnd.ms-powerpoint ; svn:needs-lock
*.pptm = svn:mime-type=application/vnd.ms-powerpoint.presentation.macroEnabled.1 ; svn:needs-lock
*.pptx = svn:mime-type=application/vnd.openxmlformats-officedocument.presentationml.presentation ; svn:needs-lock
*.ps = svn:mime-type=application/postscript
*.pub = svn:mime-type=application/x-mspublisher ; svn:needs-lock
*.py = svn:executable
*.q = svn:keywords=Rev
*.rtf = svn:mime-type=application/rtf ; svn:needs-lock
*.sh = svn:executable ; svn:mime-type=application/x-sh
*.sldm = svn:mime-type=application/vnd.ms-powerpoint.slide.macroEnabled.12 ; svn:needs-lock
*.sldx = svn:mime-type=application/vnd.openxmlformats-officedocument.presentationml.slide ; svn:needs-lock
*.sln = svn:eol-style=CRLF
*.svg = svn:mime-type=image/svg+xml
*.tar = svn:mime-type=application/x-tar ; svn:needs-lock
*.tex = svn:eol-style=native ; svn:keywords=Rev ; svn:mime-type=application/x-tex
# *.tgz = svn:mime-type=application/x-compressed ; svn:needs-lock
*.tif = svn:mime-type=image/tiff ; svn:needs-lock
*.txt = svn:eol-style=native ; svn:mime-type=text/plain
*.vcproj = svn:eol-style=CRLF
*.vsd = svn:mime-type=application/x-visio ; svn:needs-lock
*.vst = svn:mime-type=application/x-visio ; svn:needs-lock
*.vsw = svn:mime-type=application/x-visio ; svn:needs-lock
# *.xhtml = svn:eol-style=native ; svn:mime-type=application/xhtml+xml
*.xla = svn:mime-type=application/vnd.ms-excel ; svn:needs-lock
*.xlam = svn:mime-type=application/vnd.ms-excel.addin.macroEnabled.12 ; svn:needs-lock
*.xlc = svn:mime-type=application/vnd.ms-excel ; svn:needs-lock
*.xlm = svn:mime-type=application/vnd.ms-excel ; svn:needs-lock
*.xls = svn:mime-type=application/vnd.ms-excel ; svn:needs-lock
*.xlsb = svn:mime-type=application/vnd.ms-excel.sheet.binary.macroEnabled.12 ; svn:needs-lock
*.xlsm = svn:mime-type=application/vnd.ms-excel.sheet.macroEnabled.12 ; svn:needs-lock
*.xlsx = svn:mime-type=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet ; svn:needs-lock
*.xlt = svn:mime-type=application/vnd.ms-excel ;
*.xltm = svn:mime-type=application/vnd.ms-excel.template.macroEnabled.12 ; svn:needs-lock
*.xltx = svn:mime-type=application/vnd.openxmlformats-officedocument.spreadsheetml.template ; svn:needs-lock
*.xlw = svn:mime-type=application/vnd.ms-excel ; svn:needs-lock
*.xml = svn:eol-style=native ; svn:mime-type=text/xml
*.xsl = svn:eol-style=native ; svn:mime-type=text/xml
*.zip = svn:mime-type=application/zip ; svn:needs-lock
# Makefile = svn:eol-style=native

It should be possible to copy lines from this table and paste them (perhaps with a little editing; perhaps via a spreadsheet).

Advertisements

One Response to “SVN Properties and MIME Types”

  1. Rob Says:

    2010-06-09 — Updated svn:needs-lock properties.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: