summaryrefslogtreecommitdiff
path: root/git-changes
blob: a964d0fe4845c6e57dec585d88a25fe321b997c9 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
re='^[0-9]+$'
if [[ $1 =~ $re ]]
then
    days=${1}
    shift
else
    days='1'
fi
git shortlog --since=$(date -d "-${days}days" +%s) "$@"