Created
December 15, 2011 06:25
-
-
Save marutanm/1480051 to your computer and use it in GitHub Desktop.
gitで直近n日の自分のコミットを表示するサブコマンドrecent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
recent = "!$SHELL -c ' \n\ | |
n=1 \n\ | |
1=\"${1:-$n}\" \n\ | |
git --no-pager log --since=\"$1\".days --author=\"`git config user.name`\" --pretty=format:\"%h - %ar : %s\" --branches --reverse\n\ | |
' __dummy__" | |
# デフォルトで1日分、git recent 10 で10日分 | |
#参考 http://whileimautomaton.net/2009/05/08003459 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment