blob: ce24cb9c170ff783c00201111363465558a8f049 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env bash
#
# Show a summary of changes, eg: 'git changes 2 src' shows two days of changes
# in the 'src' directory.
#
re='^[0-9]+$'
if [[ $1 =~ $re ]]
then
days=${1}
shift
else
days='1'
fi
git log --invert-grep --author="Bot" \
--format=short --since=$(date -d "-${days}days" +%s) "$@" \
| git shortlog
|