2019-02-26 21:35:22 +08:00
|
|
|
# Set the default behavior, in case people don't have core.autocrlf set.
|
|
|
|
# Uncomment next line to adjust line endings
|
2019-08-05 06:11:48 +08:00
|
|
|
* text=auto
|
2019-02-26 21:35:22 +08:00
|
|
|
|
2019-08-05 06:11:48 +08:00
|
|
|
# we don't want json files to be modified for this project
|
|
|
|
*.json binary
|
2019-02-26 21:35:22 +08:00
|
|
|
|
|
|
|
|
2019-08-05 06:11:48 +08:00
|
|
|
# Common settings that generally should always be used with your language specific settings
|
|
|
|
|
|
|
|
#
|
|
|
|
# From generator:
|
|
|
|
# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
|
|
|
|
#
|
|
|
|
|
|
|
|
# Documents
|
|
|
|
*.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
|
|
|
|
*.tex text diff=tex
|
|
|
|
*.adoc text
|
|
|
|
*.textile text
|
|
|
|
*.mustache text
|
|
|
|
*.csv text
|
|
|
|
*.tab text
|
|
|
|
*.tsv text
|
|
|
|
*.txt text
|
|
|
|
*.sql text
|
|
|
|
|
|
|
|
# Graphics
|
|
|
|
*.png binary
|
|
|
|
*.jpg binary
|
|
|
|
*.jpeg binary
|
|
|
|
*.gif binary
|
|
|
|
*.tif binary
|
|
|
|
*.tiff binary
|
|
|
|
*.ico binary
|
|
|
|
# SVG treated as an asset (binary) by default.
|
|
|
|
*.svg text
|
|
|
|
# If you want to treat it as binary,
|
|
|
|
# use the following line instead.
|
|
|
|
# *.svg binary
|
|
|
|
*.eps binary
|
|
|
|
|
|
|
|
# Scripts
|
|
|
|
*.bash text eol=lf
|
|
|
|
*.sh 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
|
|
|
|
*.toml text
|
|
|
|
*.xml text
|
|
|
|
*.yaml text
|
|
|
|
*.yml text
|
|
|
|
|
|
|
|
# Archives
|
|
|
|
*.7z binary
|
|
|
|
*.gz binary
|
|
|
|
*.tar binary
|
|
|
|
*.zip binary
|
|
|
|
|
|
|
|
#
|
|
|
|
# Exclude files from exporting
|
|
|
|
#
|
|
|
|
|
|
|
|
.gitattributes export-ignore
|
|
|
|
.gitignore export-ignore
|
|
|
|
|
|
|
|
# Sources
|
2020-07-26 01:53:31 +08:00
|
|
|
*.c text eol=lf diff=c
|
|
|
|
*.cc text eol=lf diff=cpp
|
|
|
|
*.cxx text eol=lf diff=cpp
|
|
|
|
*.cpp text eol=lf diff=cpp
|
|
|
|
*.c++ text eol=lf diff=cpp
|
|
|
|
*.hpp text eol=lf diff=cpp
|
|
|
|
*.h text eol=lf diff=c
|
|
|
|
*.h++ text eol=lf diff=cpp
|
|
|
|
*.hh text eol=lf diff=cpp
|
2019-08-05 06:11:48 +08:00
|
|
|
|
|
|
|
# Compiled Object files
|
|
|
|
*.slo binary
|
|
|
|
*.lo binary
|
|
|
|
*.o binary
|
|
|
|
*.obj binary
|
|
|
|
|
|
|
|
# Precompiled Headers
|
|
|
|
*.gch binary
|
|
|
|
*.pch binary
|
|
|
|
|
|
|
|
# Compiled Dynamic libraries
|
|
|
|
*.so binary
|
|
|
|
*.dylib binary
|
|
|
|
*.dll binary
|
|
|
|
|
|
|
|
# Compiled Static libraries
|
|
|
|
*.lai binary
|
|
|
|
*.la binary
|
|
|
|
*.a binary
|
|
|
|
*.lib binary
|
|
|
|
|
|
|
|
# Executables
|
|
|
|
*.exe binary
|
|
|
|
*.out binary
|
|
|
|
*.app binary
|