diff options
Diffstat (limited to 'code-review-stat')
-rwxr-xr-x | code-review-stat | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/code-review-stat b/code-review-stat index 61f58ed..a3ca472 100755 --- a/code-review-stat +++ b/code-review-stat @@ -1,9 +1,7 @@ #!/bin/sh -ARGS='master..' +SCRIPT="$(dirname "$0")" +source "$SCRIPT/code-review-database" -if [ "$#" -gt 0 ]; then - ARGS="$@" -fi -git diff --stat "$ARGS" +git diff --stat "$(get_merge_base)" |