diff options
| author | Jamie Mansfield <[email protected]> | 2017-06-11 22:31:02 +0100 |
|---|---|---|
| committer | Jamie Mansfield <[email protected]> | 2017-06-11 22:31:46 +0100 |
| commit | eef1e2b945d0eefd8dfd371d5d3c432608aaae2e (patch) | |
| tree | a631bd10b751685d5ce598bfa07570e07aa827f6 /.gitattributes | |
| parent | 4b20ee479f2101b691e2254de3228ce9e60c6377 (diff) | |
| download | histacom2-eef1e2b945d0eefd8dfd371d5d3c432608aaae2e.tar.gz histacom2-eef1e2b945d0eefd8dfd371d5d3c432608aaae2e.tar.bz2 histacom2-eef1e2b945d0eefd8dfd371d5d3c432608aaae2e.zip | |
repo: Improve gitignore and gitattributes
The gitignore has been improved to ignore the following:
- IDE configuration for Visual Studio, VSCode, and Rider
- OS files for macOS, Linux, and Windows
The gitattributes has been improved to properly diff the following:
- Normalise line endings
- Common Files - .md, .png, etc
- C# Files
- Visual Studio Files
Diffstat (limited to '.gitattributes')
| -rw-r--r-- | .gitattributes | 142 |
1 files changed, 65 insertions, 77 deletions
diff --git a/.gitattributes b/.gitattributes index 8e32b91..130cddb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,77 +1,65 @@ -* text=auto - - - -# - -# The above will handle all files NOT found below - -# - -# These files are text and should be normalized (Convert crlf => lf) - -*.css text - -*.df text - -*.htm text - -*.html text - -*.java text - -*.js text - -*.json text - -*.jsp text - -*.jspf text - -*.jspx text - -*.properties text - -*.sh text - -*.tld text - -*.txt text - -*.tag text - -*.tagx text - -*.xml text - -*.yml text - -*.sh text - -# These files are binary and should be left untouched - -# (binary is a macro for -text -diff) - -*.class binary - -*.dll binary - -*.ear binary - -*.gif binary - -*.ico binary - -*.jar binary - -*.jpg binary - -*.jpeg binary - -*.png binary - -*.so binary - -*.war binary - -*.exe binary +# Normalise line endings +* text=auto + +# Common Settings +# https://github.com/alexkaratarakis/gitattributes/blob/master/Common.gitattributes +# - Documents +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain +*.md text +*.adoc text +*.textile text +*.mustache text +*.csv text +*.tab text +*.tsv text +*.sql text + +# - Graphics +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.tif binary +*.tiff binary +*.ico binary +# Might want to treat svg as text +*.svg binary +*.eps binary + +# C# Settings +# https://github.com/alexkaratarakis/gitattributes/blob/master/CSharp.gitattributes +*.cs diff=csharp + +# Visual Studio Settings +# https://github.com/alexkaratarakis/gitattributes/blob/master/VisualStudio.gitattributes +*.sln text eol=crlf +*.csproj text eol=crlf +*.vbproj text eol=crlf +*.vcxproj text eol=crlf +*.vcproj text eol=crlf +*.dbproj text eol=crlf +*.fsproj text eol=crlf +*.lsproj text eol=crlf +*.wixproj text eol=crlf +*.modelproj text eol=crlf +*.sqlproj text eol=crlf +*.wmaproj text eol=crlf + +*.xproj text eol=crlf +*.props text eol=crlf +*.filters text eol=crlf +*.vcxitems text eol=crlf + +# Extra Settings +*.dll binary +*.lib binary +*.exe binary |
