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.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, 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 E590C1F5AE for ; Fri, 11 Jun 2021 17:23:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231312AbhFKRZP (ORCPT ); Fri, 11 Jun 2021 13:25:15 -0400 Received: from mail-ot1-f45.google.com ([209.85.210.45]:44607 "EHLO mail-ot1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbhFKRZL (ORCPT ); Fri, 11 Jun 2021 13:25:11 -0400 Received: by mail-ot1-f45.google.com with SMTP id q5-20020a9d66450000b02903f18d65089fso3814797otm.11 for ; Fri, 11 Jun 2021 10:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-transfer-encoding; bh=yzA/GHuRAErPV7/e2E6v8C68RuLQ4DF6p43reGSOkHk=; b=F8mNuyEuL6VsV1RRWnGg3bIruVV8Q6hAB/m6j71vpln6P+igklrW2cSKPDf/IKqANP 9LOfw3L6jj/AjmBE1OVodWCktlUwQx1b1fYSKUj551uYUcY3zSABUSHjryvXmoL76BZB gqH5qDzZj29M1bh4qzwf6NdZ5BrBW/X3R+yacIUpjoIIyRLBnvaBr5ikdrxZecfH4j2+ n/DkTfRjylUovXHOVCQp4+VIxXjjals1vVOvBRLxLBBz8HuBSUlK97gwUmB6UfKQt9rO hlGg/s7xHK8d59zFVGh3GweTnlRkd9aNIzZo6CEAbih3MYeuMUhj30bziuoq682TuMEs yM8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-transfer-encoding; bh=yzA/GHuRAErPV7/e2E6v8C68RuLQ4DF6p43reGSOkHk=; b=kI0H+ZpHm8kwx15uRfeL/cyIqWsNcjQy/hlPndP1hLLD9jd0XcTUHoTS1KbKURffwK ZY+IHxXybUvXRaBu8ktuRZGOCDav1TgXbJpEN+vD54P07DNAFRG0LMxnFHAvylZgWSQ5 QS8fUhhGYUmU6IC27WXaOqLnNyGcfK9gC0EqIPMwyNENFEgScvgwZqGTtqp0CD7iP2qX eMJhml9D2jlysxyCbHTPyBQy+OEm5PNISbJiwjjk2ytX/Rt1a1iDrfOBmMQ7FTY1WjHl jPJXQXunxTsFPoX85nK+iXXfLNIV7k3xZ9DN3uRd93/wTRRSRdqF6fhfq6SpVxhBjYGW xW2Q== X-Gm-Message-State: AOAM533PDH8dhfI4SrrDCx+ujl1wMTnB0WKM6Vz1fAQpihV6mDr02wKm t6FpiRONlJrZPs6CUysP6mI= X-Google-Smtp-Source: ABdhPJxKMnUij7xc0swiurYBd6RDH4Ym4wJ16/spfIbaCEqkjUPyhQKyfKixrucUepvEXY8LvXYKYA== X-Received: by 2002:a9d:64a:: with SMTP id 68mr3979182otn.68.1623432122507; Fri, 11 Jun 2021 10:22:02 -0700 (PDT) Received: from localhost ([187.188.155.231]) by smtp.gmail.com with ESMTPSA id 7sm1232692oor.30.2021.06.11.10.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 10:22:02 -0700 (PDT) Date: Fri, 11 Jun 2021 12:21:55 -0500 From: Felipe Contreras To: Johannes Sixt , Sergey Organov , Junio C Hamano Cc: Jeff King , Felipe Contreras , David Aguilar , Bagas Sanjaya , Elijah Newren , =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= , Denton Liu , git@vger.kernel.org Message-ID: <60c39bb3b5cc4_8d0f20817@natae.notmuch> In-Reply-To: References: <20210609192842.696646-1-felipe.contreras@gmail.com> <20210609192842.696646-8-felipe.contreras@gmail.com> <60883e1b-787f-5ec2-a9af-f2f6757d3c43@kdbg.org> <638a0500-459a-a25b-afca-904ec0e09866@kdbg.org> <07ef3a3b-4812-4fa1-c60c-b9085a268bc3@kdbg.org> <875yykipq2.fsf@osv.gnss.ru> Subject: Re: [PATCH 7/7] xdiff: make diff3 the default conflictStyle Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Johannes Sixt wrote: > then diff3 must display the conflict as > > 1256 > > to be technically correct. RCS style can coalesce A and C outside of the > conflict and display it as > > 12AC34 > > and *that* is the helpful part of this simpler style. I have trouble translating the above to what I'm familiar with in my mind, so... diff2: 1 2 A <<<<<<< l B ======= X >>>>>>> r C 5 6 diff3: 1 2 <<<<<<< l A B C ||||||| b 3 4 ======= A X C >>>>>>> r 5 6 I personally don't mind at all having a few extra lines in order to visualize what actually happened. But of course there's zdiff3: 1 2 A <<<<<<< l B ||||||| b 3 4 ======= X >>>>>>> r C 5 6 Which is the best of both worlds, even if not technically accurate. Cheers. -- Felipe Contreras