Last Updated: February 25, 2016
·
2.668K
· 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

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 ·

Thanks, I hated the last ack.

over 1 year ago ·