Skip to content

Instantly share code, notes, and snippets.

@ScreamingDev
Last active July 2, 2022 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ScreamingDev/0be80783373844ceff8c to your computer and use it in GitHub Desktop.
Save ScreamingDev/0be80783373844ceff8c to your computer and use it in GitHub Desktop.
What did I do today?
#!/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
#!/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
@klein0r
Copy link

klein0r commented Oct 24, 2014

Nett gemacht :) Danke dafür!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment