aboutsummaryrefslogtreecommitdiffstats
path: root/code-review-difftool
blob: 1451fa0a3d50e8ca275ba8e5152bed597419d937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

REVIEW_BASE=master..

if [ $# -gt 1 ]; then
	REVIEW_BASE="$1"
fi

# TODO: Use `code-review-changed-files` instead of `git diff --name-only`
# TODO: Can't replace single dots as those could be part of a branch name
# vim -c 'tabdo Gdiff ${REVIEW_BASE/./}' -p $(git diff --name-only "$REVIEW_BASE")
vim -c 'tabdo Gdiff origin/master' -p $(git diff --name-only origin/master..)