diff mbox series

* .gitattributes: Avoid {} in filename pattern.

Message ID 20191017191649.2744-1-jason@redhat.com
State New
Headers show
Series * .gitattributes: Avoid {} in filename pattern. | expand

Commit Message

Jason Merrill Oct. 17, 2019, 7:16 p.m. UTC
Brace-expansion is a bash feature, not part of glob(7).

Applying to trunk.
---
 .gitattributes | 6 +++++-
 ChangeLog      | 4 ++++
 2 files changed, 9 insertions(+), 1 deletion(-)


base-commit: f0899489a4299d6270437f8be0d7989d91c44c88
diff mbox series

Patch

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
diff --git a/ChangeLog b/ChangeLog
index 90413f57284..5487226c989 100644
--- 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