aboutsummaryrefslogtreecommitdiffstats
path: root/code-review-difftool
diff options
context:
space:
mode:
Diffstat (limited to 'code-review-difftool')
-rwxr-xr-xcode-review-difftool15
1 files changed, 15 insertions, 0 deletions
diff --git a/code-review-difftool b/code-review-difftool
new file mode 100755
index 0000000..67cf21c
--- /dev/null
+++ b/code-review-difftool
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+REVIEW_BASE=master..
+
+if [ $# -gt 1 ]; then
+ REVIEW_BASE="$1"
+fi
+
+git -c difftool.vdwrap.cmd='vdwrap $LOCAL $REMOTE' \
+ -c diff.tool=vdwrap \
+ difftool -t vdwrap --dir-diff "$REVIEW_BASE"
+
+# tabdo :wincmd b
+
+# git diff --stat "$REVIEW_BASE"