diff --git a/git-whatchanged b/git-whatchanged
index d80abcc98a1e5e688b166307900f754fff8f22c2..6fbd115601ed7c95c66111954ffe3b6246702106 100755 (executable)
--- a/git-whatchanged
+++ b/git-whatchanged
#!/bin/sh
-git-rev-list HEAD | git-diff-tree --stdin -v -r "$@" | less -S
+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}