diff --git a/git-whatchanged b/git-whatchanged
index 4a348ed263ea654792f7d4aaf851be84766a9609..6fbd115601ed7c95c66111954ffe3b6246702106 100755 (executable)
--- a/git-whatchanged
+++ b/git-whatchanged
#!/bin/sh
-git-rev-list HEAD | git-diff-tree --stdin -v -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}