aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-whatchanged4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-whatchanged b/git-whatchanged
index 7772260cd..6fbd11560 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}