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=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 0B0B01F953 for ; Mon, 29 Nov 2021 02:32:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238883AbhK2Cfz (ORCPT ); Sun, 28 Nov 2021 21:35:55 -0500 Received: from pb-smtp2.pobox.com ([64.147.108.71]:60570 "EHLO pb-smtp2.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbhK2Cdz (ORCPT ); Sun, 28 Nov 2021 21:33:55 -0500 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id E8E44E9411; Sun, 28 Nov 2021 21:30:37 -0500 (EST) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=sasl; bh=cKtKoJrwWW+e5HuXOuY2o/NJB8VkCSvq/SLcQoKtXoA=; b=bSJa c55ZUkTKYlVkyKkIX4/SgKICzfO5qFSJ+ZjLQO87uhLqWg1dX1bs1CvuH3TahmBk KN1zQTOQrNj3AGr56FyAmWXw0TRdkD9wP77bg6NKoMEiO2N4epQ8Do9i+2THy62r b9jo9o+C98VLO6Olf9u4DxEe6p0UKjL9X6jRh/8= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id DF8C2E9410; Sun, 28 Nov 2021 21:30:37 -0500 (EST) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [104.133.2.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 4EA10E940F; Sun, 28 Nov 2021 21:30:37 -0500 (EST) (envelope-from junio@pobox.com) From: Junio C Hamano To: Han-Wen Nienhuys Cc: Han-Wen Nienhuys via GitGitGadget , git@vger.kernel.org, Han-Wen Nienhuys Subject: Re: [PATCH 2/4] refs: trim newline from reflog message References: Date: Sun, 28 Nov 2021 18:30:36 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 564989A4-50BC-11EC-80BA-CD991BBA3BAF-77302942!pb-smtp2.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Han-Wen Nienhuys writes: > On Wed, Nov 24, 2021 at 9:55 PM Junio C Hamano wrote: >> Ehh, let's step back a bit. >> >> Is there anything in the common part and files backend in ref API >> that needs to be changed to fix some bug? I do not see anything >> broken that needs to be fixed by "assert that the string ends in LF >> and doesn't need to add LF itself" or by "always add LF". > > Clearly, you and I disagree about what is logical behavior here. > > I've reworked the series to fit with your opinion on the matter. PTAL. Thanks. I find both are logical and internally consistent, so I prefer a choice that requires fewer changes to what is already working.