1# .gitattributes 2 3# http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html 4# http://git-scm.com/book/ch7-2.html 5 6# attempt to normalize all files, this is typically a good thing 7* text=auto 8 9# types requiring CRLF 10[attr]visualstudio text eol=crlf 11*.csproj visualstudio 12*.def visualstudio 13*.dsp visualstudio 14*.dsw visualstudio 15*.rc2 visualstudio 16*.resx visualstudio 17*.sln visualstudio 18*.vcproj visualstudio 19*.vcxproj visualstudio 20*.vsprops visualstudio 21 22# explicit normalizations 23 24*.gyp text 25*.gypi text 26 27# C/C++ 28*.h text 29*.hpp text 30*.hxx text 31*.c text 32*.cc text 33*.cpp text 34*.inl text 35 36# C# 37*.cs text 38*.xaml text 39 40# Configuration 41*.conf text 42*.ini text 43 44# HTML5 45*.css text 46*.html text 47*.htm text 48*.svg text 49 50# Sass (http://sass-lang.com/) 51*.scss text 52 53# JavaScript (ECMAScript) 54*.json text 55*.js text 56 57# Lua 58*.lua text 59 60# Make 61*.mak text 62*.mk text 63 64# Shell 65*.sh text eol=lf 66*.ksh text eol=lf 67 68# Text 69*.txt text 70 71# Python 72*.py text 73 74# Ruby 75*.rb text 76 77# XML 78*.xml text 79*.xsd text 80 81 82 83# skip git delta compression for compressed file formats 84# initial list modified from https://github.com/hbons/SparkleShare/issues/519 85# 'binary' implies '-diff' 86# (so if custom diff textconv=exif for jpg, then also remove binary attribute) 87# (if exif data changes, but image does not, then delta compression helps, 88# so delta compression desirable when images are uniquely named, and not 89# changed except for exif info) 90[attr] nopack binary -delta 91# media 92*.jpg nopack 93*.JPG nopack 94*.jpeg nopack 95*.JPEG nopack 96*.png nopack 97*.PNG nopack 98*.tiff nopack 99*.TIFF nopack 100*.flac nopack 101*.FLAC nopack 102*.mp3 nopack 103*.MP3 nopack 104*.mp4 nopack 105*.MP4 nopack 106*.ogg nopack 107*.OGG nopack 108*.oga nopack 109*.OGA nopack 110*.avi nopack 111*.AVI nopack 112*.mov nopack 113*.MOV nopack 114*.mpg nopack 115*.MPG nopack 116*.mpeg nopack 117*.MPEG nopack 118*.mkv nopack 119*.MKV nopack 120*.ogv nopack 121*.OGV nopack 122*.ogx nopack 123*.OGX nopack 124*.webm nopack 125*.WEBM nopack 126 127# archive 128*.7z nopack 129*.7Z nopack 130*.ace nopack 131*.ACE nopack 132*.gz nopack 133*.GZ nopack 134*.bz2 nopack 135*.BZ2 nopack 136*.pak nopack 137*.PAK nopack 138*.rar nopack 139*.RAR nopack 140*.tar nopack 141*.TAR nopack 142*.tgz nopack 143*.TGZ nopack 144*.z nopack 145*.Z nopack 146*.zip nopack 147*.ZIP nopack 148 149# package management 150*.deb nopack 151*.DEB nopack 152*.rpm nopack 153*.RPM nopack 154 155# postscript (can compress) 156*.ps -diff 157 158# (above is not an unabridged list) 159# (more compressed file formats, compressed media formats, package formats, ...) 160# http://en.wikipedia.org/wiki/List_of_archive_formats 161# http://en.wikipedia.org/wiki/List_of_file_formats 162# http://www.fileinfo.com/filetypes/compressed 163# http://www.file-extensions.org/filetype/extension/name/archive-and-compressed-files 164 165# (consider managing binary artifacts in git-annex or other external management 166# such as Archiva, Artifactory, Nexus) 167 168# (binary artifacts are best stored outside of git, but abuse is inevitable) 169*.a nopack 170*.exe nopack 171*.o nopack 172*.so nopack 173