opcodes: add a .gitattributes file for aarch64 autogenerated file exceptions

Message ID 20240523161618.590787-1-rearnsha@arm.com
State Committed
Headers
Series opcodes: add a .gitattributes file for aarch64 autogenerated file exceptions |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_binutils_check--master-arm success Testing passed

Commit Message

Richard Earnshaw May 23, 2024, 4:16 p.m. UTC
  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 | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 opcodes/.gitattributes
  

Comments

Nick Clifton May 24, 2024, 12:24 p.m. UTC | #1
Hi Richard,

> 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.

That seems totally reasonable.  Please go ahead and apply the patch.

Cheers
   Nick
  

Patch

diff --git a/opcodes/.gitattributes b/opcodes/.gitattributes
new file mode 100644
index 00000000000..f3d477b6390
--- /dev/null
+++ b/opcodes/.gitattributes
@@ -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