Created
June 22, 2015 22:32
-
-
Save pathikrit/fb75ba009960c4ed9ddf to your computer and use it in GitHub Desktop.
git daily standup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log --all --no-merges --graph --date=relative --committer=$(git config --get user.email) --pretty=format:'%C(cyan) %ad %C(yellow)%h %Creset %s %Cgreen%d' --since="$(if [[ "Mon" == "$(date +%a)" ]]; then echo "last friday"; else echo "yesterday"; fi)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately the argument for
since
will not work for mondays if you have a non-english locale; setting the locale explicit (like"Mon" == "$(LC_TIME=en_US.UTF-8 date +%a)"
) fixes this issue. Full command would be:P.S.: would be nice to merge my fork into this gist :-)