1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 00:08:52 -05:00
gitattributes/Common.gitattributes

82 lines
1.7 KiB
Plaintext
Raw Normal View History

# Common settings that generally should always be used with your language specific settings
2014-04-03 18:10:04 -04:00
# Auto detect text files and perform LF normalization
2019-04-18 00:51:46 -04:00
# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
2019-04-19 20:35:18 -04:00
* text=auto
2014-04-03 18:10:04 -04:00
#
# The above will handle all files NOT found below
#
# Documents
2019-04-19 20:35:18 -04:00
*.bibtex text diff=bibtex
*.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
2019-04-19 20:35:18 -04:00
*.md text
*.tex text diff=tex
*.adoc text
*.textile text
2014-07-16 03:17:28 -04:00
*.mustache text
2019-04-19 20:35:18 -04:00
*.csv text
*.tab text
*.tsv text
*.txt text
2019-04-19 20:35:18 -04:00
*.sql text
*.ps1 text
# Graphics
2019-04-19 20:35:18 -04:00
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
2019-04-19 20:10:44 -04:00
# SVG treated as an asset (binary) by default.
2019-04-19 20:35:18 -04:00
*.svg text
2019-04-21 03:16:56 -04:00
# If you want to treat it as binary,
2019-04-19 20:10:44 -04:00
# use the following line instead.
2019-04-19 20:35:18 -04:00
# *.svg binary
*.eps binary
2019-01-26 02:25:53 -05:00
# Scripts
*.bash text eol=lf
*.fish text eol=lf
*.sh text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
# Serialisation
*.json text
2019-07-13 21:28:42 -04:00
*.toml text
*.xml text
*.yaml text
*.yml text
# Archives
*.7z binary
*.gz binary
*.tar binary
*.tgz binary
*.zip binary
# Text files where line endings should be preserved
*.patch -text
2019-01-26 02:25:53 -05:00
#
# Exclude files from exporting
#
.gitattributes export-ignore
2019-04-19 20:35:18 -04:00
.gitignore export-ignore
2020-07-14 09:05:45 -04:00
.gitkeep export-ignore