Skip to content

Instantly share code, notes, and snippets.

@marutanm
Created December 15, 2011 06:25
Show Gist options
  • Save marutanm/1480051 to your computer and use it in GitHub Desktop.
Save marutanm/1480051 to your computer and use it in GitHub Desktop.

Revisions

  1. marutanm revised this gist Dec 15, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .gitconfig
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    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\
    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日分
  2. marutanm revised this gist Dec 15, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .gitconfig
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    recent = "!$SHELL -c ' \n\
    n=1 \n\
    1=\"${1:-$n}\" \n\
    git log --no-pager --since=\"$1\".days --author=\"`git config user.name`\" --pretty=format:\"%h - %ar : %s\" --branches --reverse\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日分
  3. marutanm revised this gist Dec 15, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .gitconfig
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    recent = "!$SHELL -c ' \n\
    n=1 \n\
    1=\"${1:-$n}\" \n\
    git log --since=\"$1\".days --author=\"`git config user.name`\" --pretty=format:\"%h - %ad : %s\" --branches \n\
    git log --no-pager --since=\"$1\".days --author=\"`git config user.name`\" --pretty=format:\"%h - %ar : %s\" --branches --reverse\n\
    ' __dummy__"

    # デフォルトで1日分、git recent 10 で10日分
  4. marutanm revised this gist Dec 15, 2011. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,9 @@
    [alias]
    recent = "!$SHELL -c ' \n\
    git log --since=${0:-1}.days --author=\"`git config user.name`\" --pretty=format:\"%h - %ad : %s\" --branches \n\
    '"
    recent = "!$SHELL -c ' \n\
    n=1 \n\
    1=\"${1:-$n}\" \n\
    git log --since=\"$1\".days --author=\"`git config user.name`\" --pretty=format:\"%h - %ad : %s\" --branches \n\
    ' __dummy__"

    # デフォルトで1日分、git recent 10 で10日分
    #参考 http://whileimautomaton.net/2009/05/08003459
  5. marutanm revised this gist Dec 15, 2011. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion .gitconfig
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,4 @@
    [alias]
    recent = "!$SHELL -c 'git log --since=${0:-1}.days --author=\"`git config user.name`\" --pretty=format:\"%h - %ad : %s\" --branches'"
    recent = "!$SHELL -c ' \n\
    git log --since=${0:-1}.days --author=\"`git config user.name`\" --pretty=format:\"%h - %ad : %s\" --branches \n\
    '"
  6. marutanm created this gist Dec 15, 2011.
    2 changes: 2 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    [alias]
    recent = "!$SHELL -c 'git log --since=${0:-1}.days --author=\"`git config user.name`\" --pretty=format:\"%h - %ad : %s\" --branches'"