Guest User

Untitled

a guest
Oct 17th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $# -ne 1 ]; then
  4. echo "Please provide a starting <date> ('2 weeks ago', '2017-04-04')"
  5. exit 1
  6. fi
  7.  
  8. git log --shortstat --since "$1" | awk ' \
  9. /^ [0-9]/ { c += 1; f += $1; i += $4; d += $6 } \
  10. 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) } \
  11. '
Add Comment
Please, Sign In to add comment