diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-08-25 16:00:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-25 16:00:43 -0700 |
commit | 3f1c70f717da3c9ec6ae3744593c7f9f3729aad7 (patch) | |
tree | 2ae895eba594851c845af80b4d60cd584e59f0b6 /mergetools/kdiff3 | |
parent | Merge branch 'jc/maint-autofix-tag-in-head' (diff) | |
parent | mergetools/meld: Use '--output' when available (diff) | |
download | tgif-3f1c70f717da3c9ec6ae3744593c7f9f3729aad7.tar.xz |
Merge branch 'da/difftool-mergtool-refactor'
* da/difftool-mergtool-refactor:
mergetools/meld: Use '--output' when available
mergetool--lib: Refactor tools into separate files
mergetool--lib: Make style consistent with git
difftool--helper: Make style consistent with git
Diffstat (limited to 'mergetools/kdiff3')
-rw-r--r-- | mergetools/kdiff3 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mergetools/kdiff3 b/mergetools/kdiff3 new file mode 100644 index 0000000000..28fead428b --- /dev/null +++ b/mergetools/kdiff3 @@ -0,0 +1,24 @@ +diff_cmd () { + "$merge_tool_path" --auto \ + --L1 "$MERGED (A)" --L2 "$MERGED (B)" \ + "$LOCAL" "$REMOTE" >/dev/null 2>&1 +} + +merge_cmd () { + if $base_present + then + "$merge_tool_path" --auto \ + --L1 "$MERGED (Base)" \ + --L2 "$MERGED (Local)" \ + --L3 "$MERGED (Remote)" \ + -o "$MERGED" "$BASE" "$LOCAL" "$REMOTE" \ + >/dev/null 2>&1 + else + "$merge_tool_path" --auto \ + --L1 "$MERGED (Local)" \ + --L2 "$MERGED (Remote)" \ + -o "$MERGED" "$LOCAL" "$REMOTE" \ + >/dev/null 2>&1 + fi + status=$? +} |