summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-01-15 14:29:53 +0100
committerJakub Jelinek <jakub@redhat.com>2020-01-15 14:29:53 +0100
commitaffb7b66aa6e08aa19ccec2cc24d166a37d4a556 (patch)
tree52f3b24e0e46c8059a11f8b930543b9b1808e485 /.gitattributes
parent84a3effa1a22f46a145f373461eaccf0d4585587 (diff)
downloadgcc-affb7b66aa6e08aa19ccec2cc24d166a37d4a556.tar.gz
Add *.md diff=md.
2020-01-15 Segher Boessenkool <segher@kernel.crashing.org> Jakub Jelinek <jakub@redhat.com> * .gitattributes: Add *.md diff=md. contrib/ * gcc-git-customization.sh: Change uses to use in comment.
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 13debfd97e9..e75bfc595bf 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -4,3 +4,7 @@
*.[cCh] whitespace=indent-with-non-tab,space-before-tab,trailing-space
*.cc whitespace=indent-with-non-tab,space-before-tab,trailing-space
ChangeLog whitespace=indent-with-non-tab,space-before-tab,trailing-space
+# Make diff on MD files use "(define" as a function marker.
+# Use together with git config diff.md.xfuncname '^\(define.*$'
+# which is run by contrib/gcc-git-customization.sh too.
+*.md diff=md