aboutsummaryrefslogtreecommitdiffstats
path: root/code-review-difftool
blob: 54376c4f4522b63fc901704576aae4e3f9f07021 (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)