GIT 1.1.6
[git/mingw/4msysgit/kblees.git] / git-whatchanged.sh
blob80e2500e0ea1769d9d92454c667852dd2056ef04
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 diff_tree_flags=$(git-rev-parse --sq --no-revs --flags "$@")
8 test -z "$diff_tree_flags" &&
9 diff_tree_flags=$(git-repo-config --get whatchanged.difftree)
10 test -z "$diff_tree_flags" &&
11 diff_tree_flags='-M --abbrev'
13 rev_list_args=$(git-rev-parse --sq --default HEAD --revs-only "$@") &&
14 diff_tree_args=$(git-rev-parse --sq --no-revs --no-flags "$@") &&
16 eval "git-rev-list $rev_list_args" |
17 eval "git-diff-tree --stdin --pretty -r $diff_tree_flags $diff_tree_args" |
18 LESS="$LESS -S" ${PAGER:-less}