diff --git a/git-whatchanged b/git-whatchanged
index 7772260cd30e8f9a849f2857db3f3fd40e630d4f..6fbd115601ed7c95c66111954ffe3b6246702106 100755 (executable)
--- a/git-whatchanged
+++ b/git-whatchanged
#!/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}