From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 58EFE3858D28 for ; Mon, 18 Jul 2022 15:36:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 58EFE3858D28 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id BA5AE1E222; Mon, 18 Jul 2022 11:36:13 -0400 (EDT) Message-ID: <45d241a7-e128-e2d7-5ba7-e4ecfa5f05c1@simark.ca> Date: Mon, 18 Jul 2022 11:36:13 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] gdb/git: highlight whitespace errors source files Content-Language: en-US To: Andrew Burgess , gdb-patches@sourceware.org References: <20220718144359.1473453-1-aburgess@redhat.com> From: Simon Marchi In-Reply-To: <20220718144359.1473453-1-aburgess@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2022 15:36:15 -0000 On 2022-07-18 10:43, Andrew Burgess via Gdb-patches 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. > > In this commit I'd like to propose adding something similar to our > three .gitattributes files, and enable whitespace error detection for > all .h, .c, and .cc files. > > Errors are highlighted during a diff, for lines being added. I think this is a good idea, it can only help. Simon