aboutsummaryrefslogtreecommitdiffstats
path: root/code-review-start
blob: a41165911b0030b061662398a8eccb1fd36f52a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# TODO: save base branch (default to origin/master) paired with current branch.
# Subsequent code-review commands should use this base branch.

# TODO: think about renaming this to "init" if there's no corresponding "end"
# subcommand.


SCRIPT="$(dirname "$0")"
source "$SCRIPT/code-review-database"


create_database_if_not_exists

if [ $# -eq 1 ]; then
	merge_base="$1"
	create_merge_base_from_current "$merge_base"
fi