Received: from eggs.gnu.org ([2001:4830:134:3::10]:54234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP8Oi-0006ms-FR for qemu-devel@nongnu.org; Mon, 18 Jul 2016 09:15:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP8Oc-0003gM-Mu for qemu-devel@nongnu.org; Mon, 18 Jul 2016 09:15:48 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:32864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP8Oc-0003gG-D3 for qemu-devel@nongnu.org; Mon, 18 Jul 2016 09:15:42 -0400 Received: by mail-wm0-x243.google.com with SMTP id o80so12650244wme.0 for ; Mon, 18 Jul 2016 06:15:42 -0700 (PDT) Sender: Paolo Bonzini References: <1468576014-28788-1-git-send-email-stefanha@redhat.com> <20160718121513.GE15163@stefanha-x1.localdomain> From: Paolo Bonzini Message-ID: Date: Mon, 18 Jul 2016 15:15:40 +0200 MIME-Version: 1.0 In-Reply-To: <20160718121513.GE15163@stefanha-x1.localdomain> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] checkpatch: consider git extended headers valid patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , Stefan Hajnoczi Cc: qemu-devel@nongnu.org, Colin Lord On 18/07/2016 14:15, Stefan Hajnoczi wrote: > On Fri, Jul 15, 2016 at 10:46:54AM +0100, Stefan Hajnoczi wrote: >> Renames look like this with git-diff(1) when diff.renames = true is set: >> >> diff --git a/a b/b >> similarity index 100% >> rename from a >> rename to b >> >> This raises the "Does not appear to be a unified-diff format patch" >> error because checkpatch.pl only considers a diff valid if it contains >> at least one "@@" hunk. >> >> This patch accepts renames and copies too so that checkpatch.pl exits >> successfully when a diff only renames/copies files. The git diff >> extended header format is described on the git-diff(1) man page. >> >> Reported-by: Colin Lord >> Signed-off-by: Stefan Hajnoczi >> --- >> scripts/checkpatch.pl | 5 +++++ >> 1 file changed, 5 insertions(+) > > There is no maintainer for checkpatch.pl, so... > > Thanks, applied to my block tree: > https://github.com/stefanha/qemu/commits/block Actually I've sent a pull request for this patch too this morning (forgot to sent the "applied" message because at the time I applied it I was offline), but Peter bumped it. Paolo