diff options
author | Teddy Wing | 2023-11-24 21:06:46 +0100 |
---|---|---|
committer | Teddy Wing | 2023-11-24 21:06:46 +0100 |
commit | 7232165a08aeb511970b5876c6ea13ee443bfe4d (patch) | |
tree | 5684757cd8466d276dda8c018fb5f8721544f67b /code-review-changed-files | |
parent | bc44e15843b4346c278a1cb169eb8aba81717275 (diff) | |
download | code-review-7232165a08aeb511970b5876c6ea13ee443bfe4d.tar.bz2 |
code-review-changed-files: Move "..." back to `get_merge_base`
It's more convenient to have the "..." here because all of the
code-review commands use `get_merge_base`. Otherwise I'd end up having
to add it to most of the other commands.
But now, instead of only adding it to the default merge base, add it to
all merge bases, including the one set by `code-review-start`. This
makes all merge bases consistent, and means you don't have to include
the dots when setting a custom merge base.
Diffstat (limited to 'code-review-changed-files')
-rwxr-xr-x | code-review-changed-files | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code-review-changed-files b/code-review-changed-files index 1d55d86..8413b47 100755 --- a/code-review-changed-files +++ b/code-review-changed-files @@ -21,5 +21,5 @@ SCRIPT="$(dirname "$0")" source "$SCRIPT/code-review-database" -git diff --name-only "$(get_merge_base)"... | +git diff --name-only "$(get_merge_base)" | awk -v git_root="$GIT_ROOT" '{ print git_root "/" $0 }' |