gitattributes: Avoid {} in filename pattern.
authorJason Merrill <jason@redhat.com>
Thu, 17 Oct 2019 19:17:00 +0000 (15:17 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 17 Oct 2019 19:17:00 +0000 (15:17 -0400)
* .gitattributes: Avoid {} in filename pattern.

Brace-expansion is a bash feature, not part of glob(7).

From-SVN: r277129

.gitattributes
ChangeLog

index b38d7f1b43bebd2645a4ddaea2ed6659ca8a34e9..183fdcaaa9ad8778014764b088f2f8d57b124a0f 100644 (file)
@@ -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
index 90413f57284b9c7bcd5ed45610165784af49be1e..5487226c98983aec3ef6c9e8dca81abacaaecc99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-10-17  Jason Merrill  <jason@redhat.com>
+
+       * .gitattributes: Avoid {} in filename pattern.
+
 2019-10-08  Thomas Schwinge  <thomas@codesourcery.com>
 
        * MAINTAINERS: Add back Trevor Smigiel; move into Write After