Created
November 6, 2020 13:44
-
-
Save xsellier/b54853b405988401afd547be4305f174 to your computer and use it in GitHub Desktop.
Git stats
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 -e | |
while [ true ] | |
do | |
CURRENT_LINE_COUNT=$(git diff --shortstat | sed -e 's/,/\n\r/gi' -e 's/files changed/Fichiers modifiés/gi' -e 's/insertions/Lignes ajoutées/gi' -e 's/deletions/Lignes supprimées/gi') | |
echo -e "Statistiques:\n${CURRENT_LINE_COUNT}" > ~/Stream/line-count.txt | |
sleep 60 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment