Created
March 20, 2012 16:14
git: latest changes grouped by day
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
How this works? can i get results in days between? for example 1/1/2019 - 28/02/2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output