summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2019-10-17 15:17:00 -0400
committerJason Merrill <jason@gcc.gnu.org>2019-10-17 15:17:00 -0400
commit6664a5f7ecb8fa96c0b754f66cc9bb73423c42fb (patch)
tree558d7c6481df5931641e0dc2b890d2dfa967322e /.gitattributes
parent8e5993e236a50ffc161dd45d1ef3ab86133e3363 (diff)
downloadgcc-6664a5f7ecb8fa96c0b754f66cc9bb73423c42fb.tar.gz
gitattributes: Avoid {} in filename pattern.
* .gitattributes: Avoid {} in filename pattern. Brace-expansion is a bash feature, not part of glob(7). From-SVN: r277129
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes6
1 files changed, 5 insertions, 1 deletions
diff --git a/.gitattributes b/.gitattributes
index b38d7f1b43b..183fdcaaa9a 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1,5 @@
-*.{c,C,cc,h} whitespace=indent-with-non-tab,space-before-tab,trailing-space
+# Add indent-with-non-tab to the default git whitespace warnings.
+# Note that this file doesn't support bash-style brace expansion.
+
+*.[cCh] whitespace=indent-with-non-tab,space-before-tab,trailing-space
+*.cc whitespace=indent-with-non-tab,space-before-tab,trailing-space