diff options
author | Gil <mcg@google.com> | 2018-01-02 15:04:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-02 15:04:05 -0800 |
commit | 87ae4f3ecb9d75aeb600be1f966e80c7e07359f1 (patch) | |
tree | 4f5d0eee55f69d7fbb8bcff7ad5b4273d6abe300 /scripts | |
parent | 13da48d8a4fcdfe288fa15c788c59e7f54edf42c (diff) |
Fix scripts/style.sh diffs relative to branch name (#608)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/style.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/style.sh b/scripts/style.sh index 494a937..4422350 100755 --- a/scripts/style.sh +++ b/scripts/style.sh @@ -27,7 +27,7 @@ set -euo pipefail if [[ $# -gt 0 ]]; then if git rev-parse "$1" -- >& /dev/null; then # Argument was a branch name show files changed since that branch - git diff --name-only --relative + git diff --name-only --relative "$1" else # Otherwise assume the passed things are files or directories find "$@" -type f |