From unknown Tue Jun 17 20:27:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#50464 <50464@debbugs.gnu.org> To: bug#50464 <50464@debbugs.gnu.org> Subject: Status: Ediff 2.81.5 of July 4, 2013; Feature Suggestion: Support viewing diff between just remote & base or just local & base Reply-To: bug#50464 <50464@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:27:21 +0000 retitle 50464 Ediff 2.81.5 of July 4, 2013; Feature Suggestion: Support vie= wing diff between just remote & base or just local & base reassign 50464 emacs submitter 50464 mt bar severity 50464 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 07 15:10:39 2021 Received: (at submit) by debbugs.gnu.org; 7 Sep 2021 19:10:39 +0000 Received: from localhost ([127.0.0.1]:57756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNgUK-0005Fn-Vo for submit@debbugs.gnu.org; Tue, 07 Sep 2021 15:10:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:39538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNgUJ-0005Fg-91 for submit@debbugs.gnu.org; Tue, 07 Sep 2021 15:10:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNgUI-0004Co-QA for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 15:10:31 -0400 Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]:33425) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNgUF-0002YZ-7s for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 15:10:30 -0400 Received: by mail-yb1-xb36.google.com with SMTP id e133so698791ybh.0 for ; Tue, 07 Sep 2021 12:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=7F5kMVNWPDK3GXVEki7MgTEGk69/u+hsKDKuubMf3w8=; b=h5a8mokVA0EB9FGaqYDpP+wPDiz74P9J32h+DQVO/T3HWj4KJW4hH1y10weCDD/Ovg 6gXXpF/KoPxxoJfcikHaz1+8wJ3CjigcB/2HFdBLwSRVRDznC6dXVKxrEgbwBmLEluZK XHxUi2b5zph5FykxI9xU0SLzNjwM85h12aSLnFyZ09SfCWYUa0J5IWWlsGA5NrOLuFT1 9gKivKIaPnnRFkkoVzJvKEBMP2Cxftn/H4BSnkWo5nRDvR49eJaH+ykTWQx9yKHlvUFt Kko5v16U/1XhxiFl/EbMGKM+sf3l9nRl+qTNIivgYFbKwcs6hF+irdF7KL/US0h2LIaN ANRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7F5kMVNWPDK3GXVEki7MgTEGk69/u+hsKDKuubMf3w8=; b=eRB8505tuJeTOTHfQSdbdCXvSq6BzSN2aGLx/ZAsOesWYlSsCIb41y4WCvtNoW/YQv IcJSuouDaNOyX3uCLe+MSjIUsAFNj6Br9x6X1y+r3ejnnkppaRb0Y/dU+6p4Ty1yGEcp XAcvMv7oLYz+kVmDVKpwQJ5sgNdqowC+jLELSbf15Syz6JYvN68RLaFhQc6DLB4E0GBN jbFC61hJx9LSg2ol/ThDtx6zH0ymknkuThzNbb+//IoRNie9Vjeq4Kp3icbaFelKtB25 mNkmfMLYa9YZ12ARjR3MXQEKKLEoA6KdqNY8De0/tFo1DEz/iNUfCNEj0SbvOmrSWRQx L0PA== X-Gm-Message-State: AOAM533urRPdYyH0a69T2Nmzm1i7DpWl4ViI8SkPFIkWS+h2MgagAxC9 2X+erbPsKfl4HI86bKoI8zT+KhPXp0z7Ke02iJ4= X-Google-Smtp-Source: ABdhPJyCUu8LJb3omothdZPMDj3ZF3hgDrWvevD7AT8NAer6d+EQOR/YqIrNo2nKh5K5TkERjtb3Q2MTsOm7JgW0EIQ= X-Received: by 2002:a25:1c56:: with SMTP id c83mr24748462ybc.222.1631041824460; Tue, 07 Sep 2021 12:10:24 -0700 (PDT) MIME-Version: 1.0 From: mt bar Date: Tue, 7 Sep 2021 12:10:13 -0700 Message-ID: Subject: Ediff 2.81.5 of July 4, 2013; Feature Suggestion: Support viewing diff between just remote & base or just local & base To: kifer@cs.stonybrook.edu, bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000008f93e105cb6c84c2" Received-SPF: pass client-ip=2607:f8b0:4864:20::b36; envelope-from=mtbar131@gmail.com; helo=mail-yb1-xb36.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --0000000000008f93e105cb6c84c2 Content-Type: text/plain; charset="UTF-8" Hi, I am writing to suggest a new feature to the ediff package that I think can improve the user experience when resolving complicated merges. It would be helpful if ediff supported switching between a 3 way diff (i.e a diff between BASE, LOCAL & MASTER) and a diff with only the BASE (i.e a diff between just the BASE & LOCAL or a diff between just the BASE & REMOTE). While resolving a complicated merge I use `ediff-merge-files-with-ancestor` to see all 3 versions (i.e BASE, LOCAL & REMOTE) of the same file. In this setup ediff shows the diff by comparing all 3 versions of the file.I often find it helpful to first copy all the contents of the LOCAL buffer into the COMBINED buffer and then view diff between REMOTE & BASE one by one and merge them correctly inside the COMBINED buffer manually. (I ask git to not automerge such files by using the `mergetool.hideResolved` flag so that I don't miss any change). However, as far as I know there is no way to ask ediff to only show the diff between the REMOTE BASE instead of the default 3-way diff. It is bit cumbersome to jump over the 3-way diff hunks and manually isolate the diff between REMOTE & BASE from the 3-way diff between LOCAL, REMOTE & BASE. I probably am uninformed about some existing feature that already does this so feel free to point me towards that. If not, I would really like to see this support from ediff. Thank you Amit Emacs : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2020-06-16 Package: Ediff 2.81.5 of July 4, 2013 current state: ============== (setq ediff-diff-program "diff" ediff-diff-options "" ediff-diff3-program "diff3" ediff-diff3-options "" ediff-patch-program "patch" ediff-patch-options "-f" ediff-shell "sh" ediff-use-faces t ediff-auto-refine 'on ediff-highlighting-style 'face ediff-buffer-A # ediff-buffer-B # ediff-control-buffer # ediff-forward-word-function 'ediff-forward-word ediff-control-frame nil ediff-control-frame-parameters '((name . "Ediff") (minibuffer) (user-position . t) (vertical-scroll-bars) (scrollbar-width . 0) (scrollbar-height . 0) (menu-bar-lines . 0) (tool-bar-lines . 0) (left-fringe . 0) (right-fringe . 0) (auto-lower) (auto-raise . t) (visibility) (width . 1) (height . 1) (fullscreen) (top . 67) (left . 270)) ediff-control-frame-position-function 'ediff-make-frame-position ediff-prefer-iconified-control-frame nil ediff-window-setup-function 'ediff-setup-windows-plain ediff-split-window-function 'split-window-horizontally ediff-job-name 'ediff-merge-files-with-ancestor ediff-word-mode nil ediff-buffer-name "*Ediff Control Panel*" ediff-device-type nil ) --0000000000008f93e105cb6c84c2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I am writing to suggest = a new feature to the ediff package that I think can
improve the = user experience when resolving complicated merges.

=
It would be helpful if ediff supported switching between a 3 way diff<= /div>(i.e a diff between BASE, LOCAL & MASTER) and a diff with only the= BASE (i.e a
diff between just the BASE & LOCAL or a diff between ju= st the BASE &
REMOTE).

While resolving a complicated merge I = use
`ediff-merge-files-with-ancestor` to see all 3 versions (i.e BASE, L= OCAL
& REMOTE) of the same file. In this setup ediff shows the diff = by
comparing all 3 versions of the file.I often find it helpful to first=
copy all the contents of the LOCAL buffer into the COMBINED buffer and<= br>then view diff between REMOTE & BASE one by one and merge them corre= ctly
inside the COMBINED buffer manually. (I ask git to not automerge su= ch
files by using the `mergetool.hideResolved` flag so that I don't = miss
any change). However, as far as I know there is no way to ask ediff= to
only show the diff between the REMOTE BASE instead of
the default= 3-way diff. It is bit cumbersome to jump over
the 3-way diff hunks and = manually isolate the diff between REMOTE & BASE
from the 3-way=C2=A0= diff between LOCAL, REMOTE & BASE.

I probably am uninformed abou= t some existing feature that already does
this so feel free to point me = towards that. If not, I would really like
to see this support from = ediff.

Thank you
Amit



Emacs =C2=A0: GNU Emacs 26= .3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
=C2=A0of 2020-06= -16
Package: Ediff 2.81.5 of July 4, 2013

current state:
=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0ediff-diff-progra= m "diff"
=C2=A0ediff-diff-options ""
=C2=A0ediff-= diff3-program "diff3"
=C2=A0ediff-diff3-options ""=C2=A0ediff-patch-program "patch"
=C2=A0ediff-patch-options = "-f"
=C2=A0ediff-shell "sh"
=C2=A0ediff-use-faces= t
=C2=A0ediff-auto-refine 'on
=C2=A0ediff-highlighting-style = 9;face
=C2=A0ediff-buffer-A #<buffer layers_LOCAL_13445.go>
=C2= =A0ediff-buffer-B #<buffer layers_REMOTE_13445.go>
=C2=A0ediff-con= trol-buffer #<buffer *Ediff Control Panel*>
=C2=A0ediff-forward-wo= rd-function 'ediff-forward-word
=C2=A0ediff-control-frame nil
=C2= =A0ediff-control-frame-parameters '((name . "Ediff") (minibuf= fer) (user-position . t) (vertical-scroll-bars) (scrollbar-width . 0)
= =C2=A0(scrollbar-height . 0) (menu-bar-lines . 0) (tool-bar-lines . 0) (= left-fringe . 0)
=C2=A0(right-fringe . 0) (auto-lower) (auto-raise = . t) (visibility) (width . 1) (height . 1)
=C2=A0(fullscreen) (top = . 67) (left . 270))
=C2=A0ediff-control-frame-position-function 'edi= ff-make-frame-position
=C2=A0ediff-prefer-iconified-control-frame nil=C2=A0ediff-window-setup-function 'ediff-setup-windows-plain
=C2=A0= ediff-split-window-function 'split-window-horizontally
=C2=A0ediff-j= ob-name 'ediff-merge-files-with-ancestor
=C2=A0ediff-word-mode nil=C2=A0ediff-buffer-name "*Ediff Control Panel*"
=C2=A0ediff-= device-type nil
=C2=A0)
--0000000000008f93e105cb6c84c2-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 21 11:46:43 2021 Received: (at control) by debbugs.gnu.org; 21 Sep 2021 15:46:43 +0000 Received: from localhost ([127.0.0.1]:47565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mShyk-0005GW-Tr for submit@debbugs.gnu.org; Tue, 21 Sep 2021 11:46:43 -0400 Received: from mail-pg1-f171.google.com ([209.85.215.171]:43988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mShyj-00059y-CZ for control@debbugs.gnu.org; Tue, 21 Sep 2021 11:46:41 -0400 Received: by mail-pg1-f171.google.com with SMTP id r2so21089385pgl.10 for ; Tue, 21 Sep 2021 08:46:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=o1SI34dS1LtLpx7B95IO0D0SuuieMwfSCp6Rpe5+h6k=; b=Uiy/kINMtS/R3N3GvZ9MV1fgPkQFYBqSqAYSqE5Lc5BomXMpw43YUH25bIu1Nkum8U S5uvzo65LkmTl5ioHxId+0WtX4GOtRcIB1ZWAhs0Xl5sqQyISpRI7Gm5Nx6LSH+48Gv4 QpFTxYJ3wU1OHBbkl8K4Oxa6oAK1CbUQWUuHaLv2lOphUniNls8KLckZRcVQ8h6bYHow jXVkpn6lWf5UkaKblN9lCjTNtpNBHsTxN7EuKJ7l+lcQAbGjX1Nu6QORuaw1EbQ3r32+ FDz62gimBApCJHYOvIYoGFZUO0V3aEv1Tw6Mn+a3WmSHEaHV7PSsJkFztZMptPm+eR3j +q/Q== X-Gm-Message-State: AOAM532VCvu0AyhA17GXtohgR1STzENJRRm+A5uDnUvIkvF0KhkTizNL L389oHdRERacoukhJdF7DUvxxm/iATa6Mtm0HATxM4vJ X-Google-Smtp-Source: ABdhPJxyCKA+sQS2iMZJyWYzOOvTOaYyF3Td0HppVoY33A3xS2/Kwj7roF6X/tBDQrBiHEDywKpDWVS0cdeWnJD65fs= X-Received: by 2002:a62:cd0f:0:b0:447:b8fe:d6c2 with SMTP id o15-20020a62cd0f000000b00447b8fed6c2mr11108165pfg.70.1632239195723; Tue, 21 Sep 2021 08:46:35 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 21 Sep 2021 08:46:35 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Tue, 21 Sep 2021 08:46:35 -0700 Message-ID: Subject: control message for bug #50464 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) severity 50464 wishlist quit