Skip to content

Instantly share code, notes, and snippets.

@ChrisLane
Created May 16, 2019 08:14
Show Gist options
  • Save ChrisLane/a464ab7ae96ee8d8c4563841cd91f76d to your computer and use it in GitHub Desktop.
Save ChrisLane/a464ab7ae96ee8d8c4563841cd91f76d to your computer and use it in GitHub Desktop.
#!/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