]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
opcodes: add a .gitattributes file for aarch64 autogenerated file exceptions
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 23 May 2024 15:25:51 +0000 (16:25 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Tue, 28 May 2024 09:16:23 +0000 (10:16 +0100)
The autogenerated files in opcodes use spaces for indentation.
Changing that would be a lot of work to little benefit, so add a local
override to the white-space rules, so patches apply cleanly.

opcodes/.gitattributes [new file with mode: 0644]

diff --git a/opcodes/.gitattributes b/opcodes/.gitattributes
new file mode 100644 (file)
index 0000000..f3d477b
--- /dev/null
@@ -0,0 +1,3 @@
+# The aarch64 generated files use spaces for indentation, so we need to
+# overrule the top-level whitespace rule.
+aarch64*-2.*   whitespace=space-before-tab,trailing-space