Skip to content

Instantly share code, notes, and snippets.

@emaxerrno
Last active December 23, 2015 04:39
Show Gist options
  • Select an option

  • Save emaxerrno/6581375 to your computer and use it in GitHub Desktop.

Select an option

Save emaxerrno/6581375 to your computer and use it in GitHub Desktop.
worklog
function workLog {
dirs=$(ls $HOME/workspace)
for d in $dirs
do
d=$HOME/workspace/$d
if [[ -d $d/.git ]]; then
cd $d
gituser=`git config user.name`
echo "Project: $(pwd):$gituser"
# git --no-pager log --author='$gituser' --oneline --decorate
git --no-pager log --since=8.days --oneline --decorate --author=$gituser --name-only
fi
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment