]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commit
binutils-gdb/git: Handle *.ac and *.m4 files in .gitattributes
authorTom de Vries <tdevries@suse.de>
Thu, 18 Dec 2025 09:00:54 +0000 (10:00 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 18 Dec 2025 09:00:54 +0000 (10:00 +0100)
commit1b5496684056bce7e2910db0afc050f7b73e45d7
treef87367b8f4bf1f1a6185bd9506c92f484241fefc
parent2b8ae83dfe1e1d74d12178dd884c51858d23e1f3
binutils-gdb/git: Handle *.ac and *.m4 files in .gitattributes

Since commit 52ca3d3fe61 ("toplevel: unify the GCC and GDB/binutils .editorconfig
files"), .editorconfig has settings for .ac and .m4 files:
...
[*.{ac,m4}]
indent_style = tab
indent_size = 2
trim_trailing_whitespace = true
...

There are no setting for those files in .gitattributes, so the whitespace
attribute defaults to trailing-space (shorthand for blank-at-eol,
blank-at-eof) and space-before-tab.

Since according to .editorconfig the indentation style is tab, add
indent-with-non-tab as well.

Since aclocal.m4 is generated, unset the whitespace attribute.  Likewise for
configure.
.gitattributes