Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Velocet <git@mail.velocet.de>
  • Loading branch information
Velocet committed May 3, 2024
1 parent a9ab6c7 commit 2bb8d76
Showing 1 changed file with 172 additions and 6 deletions.
178 changes: 172 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,10 +1,176 @@
# Default behavior if core.autocrlf is not set.
* text=lf
# Common settings that generally should always be used with your language specific settings
# https://github.com/gitattributes/gitattributes

# Auto detect text files and perform LF normalization
* text=auto

# Declare text files to be normalized and converted to native line endings on checkout.
# Uncomment to normalize line endings to LF in the repository
# Normalize line endings to LF in the repository.
* text eol=lf

# Declare text files that have CRLF line endings on checkout.
*.bat text eol=crlf
*.sln text eol=crlf
# GitHub Linguist Overrides
# https://github.com/github-linguist/linguist/blob/master/docs/overrides.md
docs/** linguist-documentation
docs/** linguist-language=markdown
data/** linguist-vendored
extras/** linguist-vendored
scripts/** linguist-vendored
lib/** linguist-detectable
inc/** linguist-detectable
include/** linguist-detectable
src/** linguist-detectable
test/** linguist-detectable

# Exclude files from exporting
.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
# Enable syntax highlighting for some files as an example.
*.gitattributes linguist-language=gitattributes
*.gitattributes linguist-detectable=true
*.gitattributes linguist-documentation=false
*.md linguist-language=markdown
*.md linguist-detectable=true
*.md linguist-documentation=true

# These files are text and should be normalized (Convert crlf => lf)
.gitattributes text
.gitignore text
*.md text diff=markdown

# Sources
*.c text diff=cpp
*.cc text diff=cpp
*.cxx text diff=cpp
*.cpp text diff=cpp
*.cpi text diff=cpp
*.c++ text diff=cpp
*.hpp text diff=cpp
*.h text diff=cpp
*.h++ text diff=cpp
*.hh text diff=cpp
*.lua text

# 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

# Documents
*.docx diff=astextplain
*.DOCX diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.md text diff=markdown
*.mdx text diff=markdown
*.tex text diff=tex
*.adoc text
*.textile text
*.mustache text
*.csv text eol=lf
*.tab text
*.tsv text
*.txt text
*.svd text diff=xml
*.SVD text diff=xml
# Graphics
*.png binary
*.PNG binary
*.jpg binary
*.jpeg binary
*.JPG binary
*.JPEG binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as text by default.
*.svg text
*.eps binary
*.pdn binary
*.psd binary

# Scripts
*.bash text eol=lf
*.fish text eol=lf
*.ksh text eol=lf
*.sh text eol=lf
*.zsh text eol=lf
# Declare files that have CRLF line endings on checkout.
# These are explicitly windows files and should use crlf
*.ps1 text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.bat text eol=crlf
*.sln text eol=crlf

# Serialization
*.json text
*.toml text
*.xml 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


# Basic .gitattributes for python
# ===============================
# Source files
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
*.pyi text diff=python
# Binary files
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary export-ignore
*.pyo binary export-ignore
*.pyd binary
# Jupyter notebook
*.ipynb text eol=lf

0 comments on commit 2bb8d76

Please sign in to comment.