mergetool--lib: Add Beyond Compare 3 as a tool
authorSebastian Schuberth <sschuberth@gmail.com>
Sat, 26 Feb 2011 10:52:17 +0000 (11:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 27 Feb 2011 08:47:34 +0000 (00:47 -0800)
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
lib/mergetool.tcl

index 249e0cfa93939d2b389a944f36ff8fa31ef083f5..3c8e73bcebea652c11e328169f63a6d9950d6dc2 100644 (file)
@@ -187,6 +187,13 @@ proc merge_resolve_tool2 {} {
                                 "$LOCAL" "$REMOTE" "$MERGED"]
                }
        }
+       bc3 {
+               if {$base_stage ne {}} {
+                       set cmdline [list "$merge_tool_path" "$LOCAL" "$REMOTE" "$BASE" -mergeoutput="$MERGED"]
+               } else {
+                       set cmdline [list "$merge_tool_path" "$LOCAL" "$REMOTE" -mergeoutput="$MERGED"]
+               }
+       }
        ecmerge {
                if {$base_stage ne {}} {
                        set cmdline [list "$merge_tool_path" "$BASE" "$LOCAL" "$REMOTE" --default --mode=merge3 --to="$MERGED"]