| Message ID | 20260501110040.1874719-25-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1777633332; bh=nX3Sw7qjuxlF8eIFh2tqSvOSSyW86RH42cJjoDXheJI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=iKclpdXXm+4SCEWBFIqm6i91M3h3eAK7KvCEiH2rOm6hcxT9byMM6Mz1c19a0UnoO 7XlQ0qYp887/rXcLRztpjoCEsazr91Krvp7U++9vYgm85Ll6Z0izDzqcQpDWh1HUS2 3e4XPdjcukpV9MFASdhjGstooXSEKAa0unIw/BwU= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A1FED6A853 for <u-boot-concept@u-boot.org>; Fri, 1 May 2026 05:02:12 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id I9Hh-Iv9R6Db for <u-boot-concept@u-boot.org>; Fri, 1 May 2026 05:02:12 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1777633330; bh=nX3Sw7qjuxlF8eIFh2tqSvOSSyW86RH42cJjoDXheJI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ZZ+AVzkGH8ILNJ863ZeqFd5U2T4ScGij710weslMOKys7z65lWktzzst8JRBPd9Pg PCRDRe6engvaV/KeUN7nspISFlSHVEF1MkodQ/SXhEPEsgTuw6duWQHmZJexVgZzDQ LwjzGWD0oi6sqKq2+jNqDV6YYZQZUgOaPWwAYfxY= Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9CC196A849 for <u-boot-concept@u-boot.org>; Fri, 1 May 2026 05:02:10 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1777633326; bh=RoyRfe/07Sy3jFP6+gG7rgKhLKCL+hp3NN9AIarmhtg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=asH4DfAHH9v/W/Yolh+IUnQPiVn+elKgkDmr8Kj0UtUzxmOybbPh4qsPZ15XfLSLE LEiQsYAc2Ro8XXl8GlRrZMDFJHCtXEnHlT7eTFwyCO2dBLLoZhQ1R1jRDMUEWKG67w fW2dT4braMaLOVxfiRDFpqAkCvUdTMCOQFhQHscw= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BFF6F6A7AF; Fri, 1 May 2026 05:02:06 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id AX_e0sj1RwBQ; Fri, 1 May 2026 05:02:06 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1777633325; bh=B5l/Q0U6zQ2YzEmo05UKsE23M7p6Ng0JICUmT+swYDQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GYZ6vrHDfYT6w5ijPNT50cERsY4AlEg66B5qkQY3pq6gcULKw8e/DKoIcaWaFpvlU ZpXSI9/u6oFwvaNMuysYNGWjHfABwvGV+HzwEAbt91ZVyCsGQCdham1MzHSMSImLtV 463dpfV3hqaGJSh98QZ4a/NvfNPoIUZ4q0gvlWzY= Received: from u-boot.org (unknown [174.51.25.52]) by mail.u-boot.org (Postfix) with ESMTPSA id 739606A833; Fri, 1 May 2026 05:02:05 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Fri, 1 May 2026 05:00:16 -0600 Message-ID: <20260501110040.1874719-25-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260501110040.1874719-1-sjg@u-boot.org> References: <20260501110040.1874719-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 6XE24RHEHK4HTOTM5MXOXCTG7TJPZRPV X-Message-ID-Hash: 6XE24RHEHK4HTOTM5MXOXCTG7TJPZRPV X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 24/29] patman: Tell the agent never to reconstruct quoted diff lines List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/6XE24RHEHK4HTOTM5MXOXCTG7TJPZRPV/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 |
| Series |
patman: Review-flow improvements and shared helpers
|
|
Commit Message
Simon Glass
May 1, 2026, 11 a.m. UTC
From: Simon Glass <sjg@chromium.org> The review agent occasionally mixes content between nearby macros or functions when quoting the diff, so the comment ends up pointing at a problem that does not exist in the patch. Add a strong rule that every quoted line must be copied verbatim from 'git show', not reconstructed from memory. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/patman/review.py | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.43.0
diff --git a/tools/patman/review.py b/tools/patman/review.py index c173a9938d5..29f618641bd 100644 --- a/tools/patman/review.py +++ b/tools/patman/review.py @@ -389,6 +389,14 @@ Rules: This include is unnecessary. - Quote enough context from the diff to identify the location +- CRITICAL: Every quoted line MUST be copied EXACTLY from the output + of 'git show {commit_hash}'. Do NOT reconstruct, paraphrase, or + combine lines from memory. Do NOT mix content between nearby macros, + functions or files. If you need to check a line before quoting it, + run 'git show {commit_hash}' again and copy the characters exactly, + including whitespace, punctuation, and backslashes. A comment that + points at a problem in a quoted line that does not actually exist + in the patch is worse than no comment at all. - Be specific and constructive, but brief — use as few words as possible to make the point. Avoid restating what the code does; - NEVER use backticks — this is plain-text email, not markdown.