git/git-whatchanged.sh

8 строки
264 B
Bash
Executable File

#!/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}