diff options
author | Teddy Wing | 2019-06-03 20:27:40 +0200 |
---|---|---|
committer | Teddy Wing | 2019-06-03 20:27:40 +0200 |
commit | 256a25b331c7b95e0a1613b09ba6a2f15fd250fe (patch) | |
tree | ef8529148a4e845b6432205d514516baa15a24a5 /code-review-difftool | |
parent | b49f7844e09a29b6b2a5e6ef71c6c17b4c7ed9fc (diff) | |
download | code-review-256a25b331c7b95e0a1613b09ba6a2f15fd250fe.tar.bz2 |
Move `code-review` to `code-review-difftool`
Going to set up a Git-style subcommand system where subcommands are
separate executables.
Diffstat (limited to 'code-review-difftool')
-rwxr-xr-x | code-review-difftool | 15 |
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" |