aboutsummaryrefslogtreecommitdiff
path: root/git-whatchanged.sh
blob: 85a49fcd8e7754cc37960c997a200b61c85892b4 (plain)
1
2
3
4
5
6
7
#!/bin/sh
rev_list_args=$(git-rev-parse --sq --default HEAD --revs-only "$@") &&
diff_tree_args=$(git-rev-parse --sq --no-revs "$@") &&

eval "git-rev-list $rev_list_args" |
eval "git-diff-tree --stdin --pretty -r $diff_tree_args" |
LESS="$LESS -S" ${PAGER:-less}