path: root/xdiff/xdiff.h
diff options
authorJohannes Schindelin <>2008-02-17 19:07:19 (GMT)
committerJunio C Hamano <>2008-02-18 08:08:40 (GMT)
commitf407f14deaa14ebddd0d27238523ced8eca74393 (patch)
tree6250028e000ffb0bdb2b0096aec7f0aa45130601 /xdiff/xdiff.h
parentcf5c51efc9fe3b0ef93c7b78005c57b71acaf959 (diff)
xdl_merge(): make XDL_MERGE_ZEALOUS output simpler
When a merge conflicts, there are often less than three common lines between two conflicting regions. Since a conflict takes up as many lines as are conflicting, plus three lines for the commit markers, the output will be shorter (and thus, simpler) in this case, if the common lines will be merged into the conflicting regions. This patch merges up to three common lines into the conflicts. For example, what looked like this before this patch: <<<<<<< if (a == 1) ======= if (a != 0) >>>>>>> { int i; <<<<<<< a = 0; ======= a = !a; >>>>>>> will now look like this: <<<<<<< if (a == 1) { int i; a = 0; ======= if (a != 0) { int i; a = !a; >>>>>>> Suggested Linus (based on ideas by "Voltage Spike" -- if that name is real, it is mighty cool). Signed-off-by: Johannes Schindelin <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'xdiff/xdiff.h')
0 files changed, 0 insertions, 0 deletions