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
Written by Carlos Júnior
Related protips
2 Responses
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/3695/2d63741c66663e0f8d59b012ca17cdc3.jpeg)
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
·
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/18277/0aade7527954a10d28c62bb46361622a.jpeg)
Thanks, I hated the last ack.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Agile
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#