kdiff3 selecting the file from remote completely
Asked Answered
R

2

19

How can I choose the complete selection in kdiff3 as C (file from remote in kdiff3) instead of changing everything line by line (merge conflicts)? I just want to choose the remote file. Also what is selection A (base file), the remote file checked out locally before new changes?

Reservation answered 22/2, 2013 at 18:30 Comment(0)
J
20

Open "Merge" menu item. It has "Choose C Everywhere" option, which selects the edits in remote (C) for all lines. If you just what to use the edits on remote for unresolved conflicts, then you should select "Choose C for All Unresolved Conficts".

enter image description here

Git does 3-way merge. A shows the file from the parent commit of B and C commits. B is the file from the branch you are in, and C is the file from the branch you are merging from.

Jaenicke answered 18/11, 2013 at 19:54 Comment(8)
Instead of using kdiff I would rather select conflict (in merge/conflicts window of git extensions) and use context menu items "Choose ..." (better for binary files for ex.)Crappie
Why don't I see these options on Linux? (I'm on KDiff3 v1.8.1).Nevins
There is no such option any moreJaquelinejaquelyn
Yep there used to be (on Ubuntu Bionic at least), but cannot find on apt kdiff3 for FocalThoth
These options are not available in KDiff3 v1.8.1, however the shortcuts are still working. Ctrl+Shift+1 is Choose A Everywhere; Ctrl+Shift+2 is Choose B Everywhere.Codger
@Frank, thanks, this helps a lot! Can you add it as a separate answer as it is hard to notice otherwise?Paediatrics
Ubuntu 20.04 ver 1.8.1 : shortcuts are broken in my installation: - according to Settings > Configure keyboard shortcuts it seems that shortcuts are as in the previous version Ctrl+<num> to choose current diff, Shift+Ctrl+<num> to Choose everywhere - working, however, is only Shift+Ctrl+<num> but to choose the current diff Unfortunately, I found no discussion place for Kdiff3: - kdiff3.sourceforge.net - is dead - github.com/KDE/kdiff3 - issues unavailable, but seems maintainedCounterintelligence
Just installed 1.9.2 from sources. Seems fixed, with good old merge menu.Counterintelligence
C
5

Supplement to @lemiorhan 's answer:

These options are not available in KDiff3 v1.8.1, however, the shortcuts are still working. Ctrl+Shift+1 is Choose A Everywhere; Ctrl+Shift+2 is Choose B Everywhere.

Codger answered 8/12, 2021 at 9:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.