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

99 lines
1.9 KiB
Plaintext
Raw Permalink 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-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
*.md text diff=markdown
2021-12-11 15:18:23 -05:00
*.mdx text diff=markdown
2019-04-19 20:35:18 -04:00
*.tex text diff=tex
*.adoc text
*.textile text
2014-07-16 03:17:28 -04:00
*.mustache text
*.csv text eol=crlf
2019-04-19 20:35:18 -04:00
*.tab text
*.tsv text
*.txt text
2019-04-19 20:35:18 -04:00
*.sql text
*.epub diff=astextplain
# Graphics
2019-04-19 20:35:18 -04:00
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as text 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
2024-02-10 17:40:09 -05:00
*.ksh text eol=lf
*.sh text eol=lf
*.zsh text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 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
*.bz binary
*.bz2 binary
*.bzip2 binary
*.gz binary
*.lz binary
*.lzma binary
*.rar binary
*.tar binary
*.taz binary
*.tbz binary
*.tbz2 binary
*.tgz binary
*.tlz binary
*.txz binary
*.xz binary
*.Z binary
*.zip binary
*.zst 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