Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $# -ne 1 ]; then
- echo "Please provide a starting <date> ('2 weeks ago', '2017-04-04')"
- exit 1
- fi
- git log --shortstat --since "$1" | awk ' \
- /^ [0-9]/ { c += 1; f += $1; i += $4; d += $6 } \
- END { printf("We pushed __%d commits__ to develop. __🔸%d files__ have changed and there have been __🔹%d insertions__ and __🔻%d deletions__.", c, f, i, d) } \
- '
Add Comment
Please, Sign In to add comment