tj / git-extras

GIT utilities -- repo summary, repl, changelog population, author commit percentages and more
MIT License
17.31k stars 1.21k forks source link

FR: `git-standup` #523

Closed hemanth closed 8 years ago

hemanth commented 8 years ago

What say @spacewander ?

spacewander commented 8 years ago

What's the difference with git init?

StevenBlack commented 8 years ago

@spacewander See https://github.com/kamranahmedse/git-standup

spacewander commented 8 years ago

Working on...will get it done in this week.

pathikrit commented 8 years ago

Excellent work @spacewander . Is it also possible to make yesterday also show results for Friday, Saturday and Sunday on a Monday? I have a POC that does that: https://gist.github.com/pathikrit/fb75ba009960c4ed9ddf . I think the implementation by @kamranahmedse posted above also does that (with additional config for custom work weeks e.g. in Middle East).

spacewander commented 8 years ago

@pathikrit You may need to build the since argument from a subshell:

git standup $(git config --get user.name) "$(if [[ "Mon" == "$(LC_ALL=C date +%a)" ]]; then echo "last friday"; else echo "yesterday"; fi)"