From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 93A6C1F670 for ; Thu, 21 Oct 2021 23:37:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231441AbhJUXjh (ORCPT ); Thu, 21 Oct 2021 19:39:37 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:31455 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhJUXjg (ORCPT ); Thu, 21 Oct 2021 19:39:36 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4Hb3mb2CSlz5Y; Fri, 22 Oct 2021 01:37:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1634859439; bh=DhtSgPgXDBvU1gykUVSkv5UkKFlgUpUGRw20sQpZqio=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iGE36gxrVYwjG1ta5iLCxgzVo1RQ7faTSiyQMRpKm93vooPIxc3TXi8PwxWKIgjD3 cYd0I6xdZGubX/5jtl6ijCHtSep6s4KKqXMRAMeYE3CCENlxFlCcaLOS3Zss6E1eZf sqr/NSVNPAboqqKeprokBEckhX5IfIl7rO2t3PtYkawqDaTyIHU4LxWgWv7JldYsht zt8vgNTfVaKDZhib0Qdm4PWG3t6Krf5dJPnGbYwqoHQA5SHL2v/w45PbfSchtl4qGV Ei8A8pS5gq3oK/b/+c6aLi9P67uzABHEpOcoWV8wmEQAJVvct3/OU1i4d3nDM+Rjwx Pis1DuJsWXbUA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.3 at mail Date: Fri, 22 Oct 2021 01:37:16 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Junio C Hamano Cc: git@vger.kernel.org Subject: Re: git format-patch --signoff Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Thu, Oct 21, 2021 at 03:34:39PM -0700, Junio C Hamano wrote: > Michał Mirosław writes: > > > I just noticed that `git format-patch --signoff` adds the 'Signed-off-by' > > line even if the exact same line is already present in the commit message. > > Could this be avoided in the tool? > > > > git version 2.30.2 > > > > Best Regards > > Michał Mirosław > > The rule should be "avoid adding the same sign-off as the one at the > end". In other words, as a record of the flow of patch custody, [...] > This test hasn't changed since it was written in Feb 2013, and I > think 2.30.2 is recent enough to conform to the rule to pass this > test. The test indeed works correctly, and I couldn't reproduce the effect on a fresh git repo. I finally took a look with hexdump on the output: the culprit was a UTF-8 non-breaking space -- indistinguishable on a terminal from a normal space. I'm not sure what to think about this... Sorry for the noise. Best Regards Michał Mirosław