Skip to content

Instantly share code, notes, and snippets.

@jk
Created August 13, 2013 15:02
Show Gist options
  • Select an option

  • Save jk/6222101 to your computer and use it in GitHub Desktop.

Select an option

Save jk/6222101 to your computer and use it in GitHub Desktop.
Review your changes from last working day in today's stand-up meeting
#!/bin/bash
function lastworkingday()
{
if [[ "1" == "$(date +%u)" ]]
then
echo "last friday"
else
echo "yesterday"
fi
}
git log --since="$(lastworkingday)" --pretty="format:%h %s - %an" | ack -A 3 Palhares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment