[PATCH] binutils-gdb/git: highlight whitespace errors in source files
Andrew Burgess
aburgess@redhat.com
Mon Jul 25 13:37:44 GMT 2022
Alan Modra via Gdb-patches <gdb-patches@sourceware.org> writes:
> On Tue, Jul 19, 2022 at 03:26:31PM +0100, Andrew Burgess via Binutils wrote:
>> For a long time I've had this in my ~/.gitconfig:
>>
>> [core]
>> whitespace = space-before-tab,indent-with-non-tab,trailing-space
>>
>> which causes git to show me if I muck up and use spaces instead of
>> tabs, or leave in trailing whitespace. I find this really useful.
>
> Same here.
>
>> I recently proposed adding something like this to the .gitattributes
>> files for the GDB sub-directories (gdb, gdbsupport, and gdbserver)[1],
>> however, the question was asked - couldn't this be done at the top
>> level?
>
> I'm happy with your patch.
Thanks, I've gone ahead and pushed this.
Andrew
More information about the Gdb-patches
mailing list