gog45a
Last Updated: February 25, 2016
·
2.374K
· xjunior

git-standup

$ cat ~/Dev/git-standup 
#!/bin/bash

function lastworkingday() 
{ 
    if [[ "1" == "$(date +%u)" ]]
    then 
        echo "last friday"
    else
        echo "yesterday"
    fi
}

git log --since="$(lastworkingday)" --author=`whoami` --pretty="format:%h %s - %an"

$ git standup

2 Responses
Add your response

8252

if you add --pretty="format:%h %s - %an" to the git log you can remove that last ack. %h = hash
%s = commit message
%an = author name

over 1 year ago ·
8253

Thanks, I hated the last ack.

over 1 year ago ·