Last active
July 2, 2022 06:52
-
-
Save ScreamingDev/0be80783373844ceff8c to your computer and use it in GitHub Desktop.
What did I do today?
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 | |
# | |
# Find the "5 days" in this code | |
# and change it to whatever you want | |
# | |
tmpfile=$(tempfile) | |
for D in $(ls -1); do | |
if [ ! -d $D/.git ]; then | |
continue; | |
fi; | |
git --git-dir=$D/.git log --since "5 days" --author="$(git config user.name)" --format=" %ai %s" > $tmpfile | |
if [[ $(tr -d "\r\n" < $tmpfile | wc -c) -eq 0 ]]; then | |
continue; | |
fi | |
echo $D | |
cat $tmpfile | |
echo "" | |
done; | |
rm $tmpfile |
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 | |
# | |
# We all have our projects in one dir. | |
# Here is how you see, what you did today: | |
# | |
tmpfile=$(tempfile) | |
for D in $(ls -1); do | |
if [ ! -d $D/.git ]; then | |
continue; | |
fi; | |
git --git-dir=$D/.git log --since "6am" --author="$(git config user.name)" --format=" %ai %s" > $tmpfile | |
if [[ $(tr -d "\r\n" < $tmpfile | wc -c) -eq 0 ]]; then | |
continue; | |
fi | |
echo $D | |
cat $tmpfile | |
echo "" | |
done; | |
rm $tmpfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nett gemacht :) Danke dafür!