summaryrefslogtreecommitdiff
path: root/git-whatchanged
diff options
context:
space:
mode:
Diffstat (limited to 'git-whatchanged')
-rwxr-xr-xgit-whatchanged4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-whatchanged b/git-whatchanged
index 7772260..6fbd115 100755
--- a/git-whatchanged
+++ b/git-whatchanged
@@ -1,2 +1,4 @@
#!/bin/sh
-git-rev-list HEAD | git-diff-tree --stdin --pretty -r "$@" | LESS="$LESS -S" ${PAGER:-less}
+git-rev-list $(git-rev-parse --default HEAD --revs-only "$@") |
+ git-diff-tree --stdin --pretty -r $(git-rev-parse --no-revs "$@") |
+ LESS="$LESS -S" ${PAGER:-less}