summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2021-01-13 09:47:02 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2021-01-13 09:47:02 +0100
commitf700afd9bcacd4f91daa9ca28e8592bd8f5055db (patch)
tree428e154698e46acaf7a7f54388b390f2b3911a3b /bin
parent9fd898fd105a5447c0d62d77815a129b66e0338c (diff)
Use kdiff3 for git diff
Diffstat (limited to 'bin')
-rwxr-xr-xbin/git_diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/git_diff b/bin/git_diff
new file mode 100755
index 0000000..6193650
--- /dev/null
+++ b/bin/git_diff
@@ -0,0 +1,17 @@
+#!/bin/bash
+# un-comment one diff tool you'd like to use
+#
+# From https://stackoverflow.com/a/7669988/3805440, thanks
+
+# side-by-side diff with custom options:
+# /usr/bin/sdiff -w200 -l "$2" "$5"
+
+# using kdiff3 as the side-by-side diff:
+/usr/bin/kdiff3 "$2" "$5"
+
+# using Meld
+#/usr/bin/meld "$2" "$5"
+
+# using VIM
+#/usr/bin/vimdiff "$2" "$5"
+

Contact - Imprint