format-patch: make sure header and body are separated.
[git/jnareb-git/bp-gitweb.git] / git-whatchanged.sh
blobb170f74a94e42dbf82f2e94b831f1cf6b49a2b4c
1 #!/bin/sh
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
7 rev_list_args=$(git-rev-parse --sq --default HEAD --revs-only "$@") &&
8 diff_tree_args=$(git-rev-parse --sq --no-revs "$@") &&
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}