chore(git): update gitignore, gitattributes

This commit is contained in:
2021-07-22 16:22:05 -06:00
parent 48f386c312
commit f21510cdf7
2 changed files with 94 additions and 22 deletions
+23 -13
View File
@@ -4,9 +4,6 @@
# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto
# JetBrains: Do not touch line endings, but show diff
.idea/** -text
#
# The above will handle all files NOT found below
#
@@ -23,7 +20,7 @@
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text
*.md text diff=markdown
*.tex text diff=tex
*.adoc text
*.textile text
@@ -33,6 +30,7 @@
*.tsv text
*.txt text
*.sql text
*.ps1 text eol=crlf
# Graphics
*.png binary
@@ -56,7 +54,22 @@
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# web frontend stack -- force LF so SRI hashes are always correct
*.html text eol=lf
*.htm text eol=lf
*.css text eol=lf
*.min.css text eol=lf
*.js text eol=lf
*.min.js text eol=lf
# Visual Studio projects (Rider also)
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Serialisation
*.json text
@@ -72,9 +85,6 @@
*.tgz binary
*.zip binary
# Docker build files
Dockerfile text eol=lf
# Text files where line endings should be preserved
*.patch -text
@@ -82,8 +92,8 @@ Dockerfile text eol=lf
# Exclude files from exporting
#
.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
.vscode export-ignore
.idea export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
.idea export-ignore
.vscode export-ignore