]> git.ipfire.org Git - thirdparty/git.git/commitdiff
mergetools: add support for guiffy
authorBill Ritcher <Bill_Ritcher@guiffy.com>
Thu, 5 Apr 2018 13:55:01 +0000 (08:55 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Apr 2018 23:11:39 +0000 (08:11 +0900)
Add guiffy as difftool and mergetool

guiffy is available on Windows, Linux, and MacOS

Signed-off-by: Bill Ritcher <Bill_Ritcher@guiffy.com>
Reviewed-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mergetools/guiffy [new file with mode: 0644]

diff --git a/mergetools/guiffy b/mergetools/guiffy
new file mode 100644 (file)
index 0000000..8b23a13
--- /dev/null
@@ -0,0 +1,18 @@
+diff_cmd () {
+       "$merge_tool_path" "$LOCAL" "$REMOTE"
+}
+
+merge_cmd () {
+       if $base_present
+       then
+               "$merge_tool_path" -s "$LOCAL" \
+               "$REMOTE" "$BASE" "$MERGED"
+       else
+               "$merge_tool_path" -m "$LOCAL" \
+               "$REMOTE" "$MERGED"
+       fi
+}
+
+exit_code_trustable () {
+       true
+}