gog45a
Last Updated: February 25, 2016
·
2.263K
· xjunior
0aade7527954a10d28c62bb46361622a

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
Say Thanks
Respond

2 Responses
Add your response

8252
2d63741c66663e0f8d59b012ca17cdc3

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
0aade7527954a10d28c62bb46361622a

Thanks, I hated the last ack.

over 1 year ago ·
Filed Under