Compare commits

..

No commits in common. "c8fed99dc91d3ef1f1fef5442facea8bf06a8262" and "c314a3c7d5d6691270bc89c31bfcace0685d47c9" have entirely different histories.

2 changed files with 20 additions and 60 deletions

79
.gitattributes vendored
View File

@ -1,68 +1,29 @@
# If file is text, use lf line-endings and let forges show it in repo # See https://www.git-scm.com/docs/gitattributes#_effects for more information
# languages. For more information: `man gitattributes`
* text=auto eol=lf linguist-detectable * text=auto eol=lf linguist-detectable
# Suggestions for inevitably encountering .gitattributeless repositories when # Hunk headers for diff shipped with git
# .gitattributes cannot be added:
# git config --global core.autocrlf input
# - `* text=auto` when there is no `.gitattributes`. In other words,
# commit eol=lf, check-out as it is.
# git config --global core.safecrlf warn
# - Warn if EOL change is irreversible.
# git config --global merge.renormalize true
# - Avoid merge-conflict when merging from .gitattributeless branch to
# .gitattributed branch
# Built-in diff patterns (disabled by default). The attribute `diff` implies
# `text` and the above attributes are inherited.
# https://www.git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header # https://www.git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header
# TODO *.{sh,bash,zsh} text diff=bash eol=lf
# diff=matlab *.bibtex text diff=bibtex eol=lf
# diff=pascal *.cpp text diff=cpp eol=lf
*.{adb,ads} diff=ada *.css text diff=css eol=lf
*.bibtex diff=bibtex *.go text diff=golang eol=lf
*.cs diff=csharp *.html text diff=html eol=lf
*.{c,cpp} diff=cpp *.java text diff=java eol=lf
*.css diff=css *.{md,markdown} text diff=markdown eol=lf
*.dts diff=dts *.pl text diff=perl eol=lf
*.{ex,exs} diff=elixir *.php text diff=php eol=lf
*.{f90,f,for} diff=fortran *.py text diff=python eol=lf
*.fountain diff=fountain *.rb text diff=ruby eol=lf
*.go diff=golang *.tex text diff=tex eol=lf
*.html diff=html
*.java diff=java
*.{kt,kts} diff=kotlin
*.{h,m,mm,M} diff=objc
*.pl diff=perl
*.php diff=php
*.py diff=python
*.rb diff=ruby
*.{rs,rlib} diff=rust
*.{scm,ss} diff=scheme
*.tex diff=tex
# bash & co aren't often Windows, so alway have lf line-endings regarldess # These files are scary, let's not touch them
# of the above. Markdown is also included as I utilise doctoc, which # Lockable is provided by git-lfs
# requires lf line-endings. LICENSE text lockable
*.{sh,bash,zsh} diff=bash eol=lf CITATION.cff text lockable
*.{md,markdown} diff=markdown eol=lf
# While this file is like .gitignore, negative patterns are forbidden and # Windows files even in checkout
# directory/ wouldn't recurse, thus directory/**. Also !attribute would set
# it back to unset.
# In this case Windows/** may also contain binary files, thus auto-detection
# is repeated and eol=crlf as it's unlikely to be of use outside of Windows.
Windows/** text=auto eol=crlf
# Similarly these files are unlikely to be encountered outside of Windows.
# The "text" attribute is used as otherwise they rely on auto-detection of
# textness since there is no diff attribute set.
# Ref: https://rehansaeed.com/gitattributes-best-practices/#line-endings # Ref: https://rehansaeed.com/gitattributes-best-practices/#line-endings
*.{reg,[rR][eE][gG]} text eol=crlf *.{reg,[rR][eE][gG]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf *.{bat,[bB][aA][tT]} text eol=crlf
*.{ahk,[aA][hH][kK]} text eol=crlf *.{ahk,[aA][hH][kK]} text eol=crlf
# These files are scary, let's not touch them. The attribute "lockable" is
# provided by git-lfs. https://github.com/git-lfs/git-lfs/wiki/File-Locking
LICENSE text lockable
CITATION.cff text lockable

View File

@ -1,2 +1 @@
* text=auto eol=crlf * text=auto eol=crlf
*.{md,markdown} text eol=lf