revert/cherry-pick: handle single quote in author name.
[git] / git-whatchanged.sh
1 #!/bin/sh
2
3 USAGE='[-p] [--max-count=<n>] [<since>..<limit>] [--pretty=<format>] [-m] [git-diff-tree options] [git-rev-list options]'
4 SUBDIRECTORY_OK='Yes'
5 . git-sh-setup
6
7 rev_list_args=$(git-rev-parse --sq --default HEAD --revs-only "$@") &&
8 diff_tree_args=$(git-rev-parse --sq --no-revs "$@") &&
9
10 eval "git-rev-list $rev_list_args" |
11 eval "git-diff-tree --stdin --pretty -r $diff_tree_args" |
12 LESS="$LESS -S" ${PAGER:-less}