From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyhyQ-0005oI-Qi for qemu-devel@nongnu.org; Sat, 18 Feb 2012 05:57:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyhyP-000326-O2 for qemu-devel@nongnu.org; Sat, 18 Feb 2012 05:57:02 -0500 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:46017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyhyP-00031p-D1 for qemu-devel@nongnu.org; Sat, 18 Feb 2012 05:57:01 -0500 Message-ID: <4F3F83F6.6030903@weilnetz.de> Date: Sat, 18 Feb 2012 11:56:54 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1328799563-18932-1-git-send-email-afaerber@suse.de> <4F349415.2000507@samsung.com> <4F355845.5040902@us.ibm.com> <4F3E64B6.5020309@us.ibm.com> <4F3E71BD.6030506@us.ibm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Anthony Liguori , Stefan Hajnoczi , qemu-devel@nongnu.org, Alexander Graf , Markus Armbruster , Paolo Bonzini Am 18.02.2012 10:13, schrieb Blue Swirl: > On Fri, Feb 17, 2012 at 15:26, Anthony Liguori > wrote: >> Well this was what I was getting at in my previous comments. If we just >> need to reindent < 10 files with a few random changes here and there, >> then >> maybe that isn't so bad. >> >> But if we have to touch every single file in the tree in a >> significant way, >> then no way is it justified. > > One way to handle this is gradual reformatting, every time when code > is touched, only changes towards common CODING_STYLE are allowed. > Small, contained reformatting patches should be also allowed, for > example to adjust brace style in one file a time or to remove spaces > at the end of line. I'd appreciate it very much if we could remove spaces at line endings for all non binary files as soon as possible. Newer versions of git (maybe also older ones with appropriate configuration, see 'git config --help', core.whitespace / blank-at-eol/ apply.whitespace) complain about patches which add such spaces. Nevertheless even recent patches did add spaces, so obviously not all committers use that git settings. It's good practice to use an editor which automatically removes spaces at end of line (I think most editors can be configured to do this). With the current code, this is difficult because it introduces additional whitespace changes when I edit a file with spaces which are removed by the editor. > >> >> I don't even want to consider something that touches every line of code. >> That's effectively creating a new source tree and losing the >> continuity of >> our SCM history. > > I think only 'git blame' output would be affected and that is not 100% > reliable anyway, considering for example code movement. 'git blame' can optionally ignore whitespace changes, so that is not really a problem. It can even ignore code movements :-) Just use 'git blame -w -C'. Regards, Stefan