From ab42bd67cd3ceb7ab8a5b0f19bc04bafb657fb50 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 15 Oct 2023 18:40:36 +0300 Subject: [PATCH] .gitattributes: keep adding build-in diffs --- .gitattributes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitattributes b/.gitattributes index 1c66cc7f..4a57c426 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,16 +4,30 @@ # 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 +# TODO +# diff=matlab +# diff=pascal +*.{adb,ads} diff=ada *.bibtex diff=bibtex +*.cs diff=csharp *.{c,cpp} diff=cpp *.css diff=css +*.dts diff=dts +*.{ex,exs} diff=elixir +*.{f90,f,for} diff=fortran +*.fountain diff=fountain *.go diff=golang *.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 @@ -21,6 +35,7 @@ # requires lf line-endings. *.{sh,bash,zsh} diff=bash eol=lf *.{md,markdown} text diff=markdown eol=lf + # While this file is like .gitignore, negative patterns are forbidden and # directory/ wouldn't recurse, thus directory/**. Also !attribute would set # it back to unset.