Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are A, B, and C in KDIFF merge

Why am I given three choices when merging between my code and someone else's? Shouldn't there just be my code, the other person's code, and the output below? The documentation for KDIFF doesn't help me understand.

like image 730
smuggledPancakes Avatar asked Oct 25 '10 20:10

smuggledPancakes


People also ask

How do you resolve conflicts in Kdiff?

Choosing Input A, B, or C for All Conflicts If you want to decide every single delta yourself, you can "Set deltas to conflicts". Or if you want to return to the automatic choices of KDiff3 then select "Automatically solve simple conflicts". KDiff3 then restarts the merge.

What is base local remote in KDiff3?

It is the first common ancestor. Often it is useful to have this to help decide which of the newer commits you want. Local is your local commit, the one in the current branch you are standing on. Remote is the remote commit, of the branch you are merging into your local one.

How does KDiff3 work?

KDiff3 is a file and directory diff and merge tool which compares and merges two or three text input files or directories, shows the differences line by line and character by character(!), provides an automatic merge-facility, has an editor for comfortable solving of merge-conflicts, provides networktransparency via ...

What is base local and remote in git?

LOCAL : the "ours" side of the conflict - ie, your branch ( HEAD ) that will contain the results of the merge. foo. REMOTE : the "theirs" side of the conflict - the branch you are merging into HEAD. foo. BASE : the common ancestor.


1 Answers

A refers to the version your merge target is based on. If you Merge from branch to trunk, 'A' will be the previous trunk version.

B is what you currently have in your local trunk folder, including local changes.

C is the Version you wanna merge on top of B.

like image 119
Th 00 mÄ s Avatar answered Sep 21 '22 16:09

Th 00 mÄ s