Skip to content

Instantly share code, notes, and snippets.

@duthied
Created August 12, 2013 23:23
Show Gist options
  • Save duthied/6216320 to your computer and use it in GitHub Desktop.
Save duthied/6216320 to your computer and use it in GitHub Desktop.
git-standup.sh
#!/bin/bash
# from https://coderwall.com/p/gog45a
function lastworkingday()
{
if [[ "1" == "$(date +%u)" ]]
then
echo "last friday"
else
echo "yesterday"
fi
}
git log --since="$(lastworkingday)" --pretty="format:%h %s - %an" | grep 'Devlon Duthie'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment