Created
May 16, 2019 08:14
-
-
Save ChrisLane/a464ab7ae96ee8d8c4563841cd91f76d to your computer and use it in GitHub Desktop.
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/sh | |
set -e | |
since=${1:-"yesterday.midnight"} | |
author=${2:-"`git config user.email`"} | |
dir=${3:-"${HOME}/git/"} | |
cd ${dir} | |
repos=`ls` | |
for project in ${repos}; do | |
cd ${project} | |
if [[ -e .git ]]; then | |
output=`git log --author=${author} --since=${since}` | |
lines=`echo ${output} | wc -l | awk '{print $1}'` | |
if [[ ${lines} != "0" ]]; then | |
echo "=============================================================" | |
echo " ${project}" | |
echo "=============================================================" | |
echo "" | |
echo ${output} | |
echo "" | |
echo "" | |
fi | |
fi | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment