blob: 005d612c50ebcacf45173be390c3a7073ab8136e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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
merge_base='origin/master'
if [ $# -eq 1 ]; then
merge_base="$1"
fi
create_merge_base_from_current "$merge_base"
|