Skip to content

Instantly share code, notes, and snippets.

@itsthatguy
Created August 1, 2013 22:35
Show Gist options
  • Save itsthatguy/6135964 to your computer and use it in GitHub Desktop.
Save itsthatguy/6135964 to your computer and use it in GitHub Desktop.
#!/bin/bash
function last_working_day {
if [[ "1" == "$(date +%u)" ]]; then
echo "last friday"
else
echo "yesterday"
fi
}
git log --graph --decorate --date=short --since="$(last_working_day)" --pretty="format:%C(yellow)%h %C(cyan)%ad %Creset%s - %C(green)%an" --author="$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment