Skip to content

Instantly share code, notes, and snippets.

@osolmaz
Forked from juanpabloaj/lastDays.sh
Created November 24, 2015 21:47
Show Gist options
  • Save osolmaz/bd3bfe449d733a5c6082 to your computer and use it in GitHub Desktop.
Save osolmaz/bd3bfe449d733a5c6082 to your computer and use it in GitHub Desktop.
git: latest changes grouped by day
#!/bin/bash
a=""
b=""
for i in $(seq 0 10)
do
b=$(git diff --shortstat "@{ $i day ago }")
if [[ "$b" != "$a" ]]; then
echo $(date --date="$i days ago" +%F) $b
fi
a=$b
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment