graph git history by month

git_history.rb, accepts two optional arguments, the first sets the bar size, the second is the graph type, which can be horizontal or vertical (defaults to horizontal) an example:
$ ./git_history.rb 
2008-03 |########                                           5 commits
2008-04 |########################################          25 commits
2008-05 |                                                   0 commits
2008-06 |                                                   0 commits
2008-07 |####                                               3 commits
2008-08 |###                                                2 commits
2008-09 |############                                       8 commits
2008-10 |                                                   0 commits
2008-11 |######                                             4 commits
2008-12 |                                                   0 commits
2009-01 |#                                                  1 commits
2009-02 |######################                            14 commits
2009-03 |########                                           5 commits
2009-04 |############                                       8 commits
2009-05 |##############                                     9 commits
2009-06 |                                                   0 commits
another example, using arguments:
./git_history.rb 30 vertical
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                                          
                                             #                                                 #                        
                                             #                                                 #                        
                                             #                                                 #                        
                                             #                                                 #                        
                                             #                                                 #                        
                                             #                                                 #                        
                                             #                                                 #              #         
     #                                       #                        #                        #         #    #         
     #                                       #                        #                        #         #    #         
     #                                       #                        #                        #         #    #         
     #    #              #              #    #                        #                        #    #    #    #         
     #    #              #              #    #                        #                        #    #    #    #         
     #    #              #    #         #    #                        #         #              #    #    #    #         
     #    #              #    #    #    #    #              #         #         #              #    #    #    #         
     #    #              #    #    #    #    #              #    #    #         #              #    #    #    #         
#    #    #         #    #    #    #    #    #              #    #    #         #         #    #    #    #    #         
#    #    #    #    #    #    #    #    #    #    #    #    #    #    #    #    #    #    #    #    #    #    #    #    
07   08   09   10   11   12   01   02   03   04   05   06   07   08   09   10   11   12   01   02   03   04   05   06   
2007 2007 2007 2007 2007 2007 2008 2008 2008 2008 2008 2008 2008 2008 2008 2008 2008 2008 2009 2009 2009 2009 2009 2009  

Posted by Maximiliano Guzman Thu, 04 Jun 2009 03:32:00 GMT