Revisions
-
kwk revised this gist
Jul 7, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ [alias] # List your commits by quarters of a year in reverse order (short version) q1 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"January $year\" --until \"March $year\" --oneline --reverse $@; }; f" q2 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"April $year\" --until \"June $year\" --oneline --reverse $@; }; f" q3 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"July $year\" --until \"September $year\" --oneline --reverse $@; }; f" q4 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"October $year\" --until \"December $year\" --oneline --reverse $@; }; f" # List your commits by quarters of a year in reverse order (long version) quarter1 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"January $year\" --until \"March $year\" --reverse $@; }; f" quarter2 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"April $year\" --until \"June $year\" --reverse $@; }; f" quarter3 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"July $year\" --until \"September $year\" --reverse $@; }; f" -
kwk revised this gist
Jul 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Add this snippet to your global `~/.gitconfig` file to simply query commits per * `q2|quarter2` April to June * `q3|quarter3` July to September * `q4|quarter4` October to December * in chronological order * with one line per commit (use `git quarter1 2012` for the full message) * all additional parameters after the year will be passed to the `git log` command that is used to implement this macro * for example, `git q2 2010 --patch` lists all diffs for each commit. -
kwk revised this gist
Jul 7, 2014 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,11 @@ Add this snippet to your global `~/.gitconfig` file to simply query commits per `git (q1|q2|q3|q4|quarter1|quarter2|quarter3|quarter4) (2012|2013|2014...any year)` * will list all of your commits (based on your user name) * that you've made from * `q1|quarter1` January to March * `q2|quarter2` April to June * `q3|quarter3` July to September * `q4|quarter4` October to December * in reverse order * with one line per commit (use `git quarter1 2012` for the full message) * all additional parameters after the year will be passed to the `git log` command that is used to implement this macro -
kwk created this gist
Jul 7, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ [alias] # List your commits by quarters of the current year in reverse order (short version) q1 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"January $year\" --until \"March $year\" --oneline --reverse $@; }; f" q2 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"April $year\" --until \"June $year\" --oneline --reverse $@; }; f" q3 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"July $year\" --until \"September $year\" --oneline --reverse $@; }; f" q4 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"October $year\" --until \"December $year\" --oneline --reverse $@; }; f" # List your commits by quarters of the current year in reverse order (long version) quarter1 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"January $year\" --until \"March $year\" --reverse $@; }; f" quarter2 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"April $year\" --until \"June $year\" --reverse $@; }; f" quarter3 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"July $year\" --until \"September $year\" --reverse $@; }; f" quarter4 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"October $year\" --until \"December $year\" --reverse $@; }; f" This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ # README Add this snippet to your global `~/.gitconfig` file to simply query commits per quarter of a year. ## Usage `git (q1|q2|q3|q4|quarter1|quarter2|quarter3|quarter4) (2012|2013|2014...any year)` * will list all of your commits (based on your user name) * that you've made from January to March in the year 2012 * in reverse order * with one line per commit (use `git quarter1 2012` for the full message) * all additional parameters after the year will be passed to the `git log` command that is used to implement this macro * for example, `git q2 2010 --patch` lists all diffs for each commit.