aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/style.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/style.sh')
-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