aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-01-02 15:04:05 -0800
committerGravatar GitHub <noreply@github.com>2018-01-02 15:04:05 -0800
commit87ae4f3ecb9d75aeb600be1f966e80c7e07359f1 (patch)
tree4f5d0eee55f69d7fbb8bcff7ad5b4273d6abe300 /scripts
parent13da48d8a4fcdfe288fa15c788c59e7f54edf42c (diff)
Fix scripts/style.sh diffs relative to branch name (#608)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/style.sh2
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