diff --git a/git-whatchanged b/git-whatchanged index 7772260cd3..6fbd115601 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}