git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Copy mergetool "bc3" as "bc4"

From
OCOlivier Croquette <ocroquette@free.fr>
Date
Oct 20, 2014, 11:03 UTC
Message-ID
<1413803017-30489-1-git-send-email-ocroquette@free.fr>
Beyond compare 4 is out since september 2014. The CLI interface doesn't seem to have changed compared to the version 3.
Signed-off-by: Olivier Croquette <ocroquette@free.fr>
---
 mergetools/bc4 |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
 create mode 100644 mergetools/bc4
diff --git a/mergetools/bc4 b/mergetools/bc4
new file mode 100644
index 0000000..b6319d2
--- /dev/null
+++ b/mergetools/bc4
@@ -0,0 +1,25 @@
+diff_cmd () {
+	"$merge_tool_path" "$LOCAL" "$REMOTE"
+}
+
+merge_cmd () {
+	touch "$BACKUP"
+	if $base_present
+	then
+		"$merge_tool_path" "$LOCAL" "$REMOTE" "$BASE" \
+			-mergeoutput="$MERGED"
+	else
+		"$merge_tool_path" "$LOCAL" "$REMOTE" \
+			-mergeoutput="$MERGED"
+	fi
+	check_unchanged
+}
+
+translate_merge_tool_path() {
+	if type bcomp >/dev/null 2>/dev/null
+	then
+		echo bcomp
+	else
+		echo bcompare
+	fi
+}
-- 
1.7.2.5
Next: Junio C Hamano
Message 1 of 8 in “Copy mergetool "bc3" as "bc4"”
  1. Copy mergetool "bc3" as "bc4"Olivier Croquette, Oct 20, 2014
  2. Junio C HamanoOct 20, 2014
  3. Junio C HamanoOct 20, 2014
  4. Sebastian SchuberthOct 20, 2014
  5. Junio C HamanoOct 20, 2014
  6. David AguilarOct 21, 2014
  7. Junio C HamanoOct 21, 2014
  8. Olivier CroquetteOct 20, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.