Giter Site home page Giter Site logo

git-timesheet's Introduction

git-timesheet

A tool to generate your timesheet from a git log. Put it in your ~/bin!

$ git-timesheet.rb --help
Usage: git-timesheet [options]
    -s, --since [TIME]               Start date for the report (default is 1 week ago)
    -a, --author [EMAIL]             User for the report (default is the author set in git config)
        --authors                    List all available authors
    -c, --current [CURRENT]          Only use `git log` for current branch

Changelog

2012-07-12 forced encoding to avoid errors in Ruby 1.9


(c) 2011-2012 Leonid Shevtsov

git-timesheet's People

Contributors

jsonpoindexter avatar leonid-shevtsov avatar miccheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

git-timesheet's Issues

--since doesn't work

tuqueja)tin@morochita:~/lab/tuqueja$ ./git-timesheet.rb | tail

09:34 float <09db44b>
09:55 import tqscommentvotes <2846533>
10:17 vote tambien borra el cache <6b68bab>
17:39 setup grappelli as admin interface <9823bba>
18:07 cache ranking smarter <ddae60a>
18:15 pdb <77cc4b1>
19:14 multifiltros <13319a2>
19:36 unicode <846d1b0>
(tuqueja)tin@morochita:~/lab/tuqueja$ ./git-timesheet.rb --since="2 week ago" | tail

09:34 float <09db44b>
09:55 import tqscommentvotes <2846533>
10:17 vote tambien borra el cache <6b68bab>
17:39 setup grappelli as admin interface <9823bba>
18:07 cache ranking smarter <ddae60a>
18:15 pdb <77cc4b1>
19:14 multifiltros <13319a2>
19:36 unicode <846d1b0>

As you can see, a have older commits

(tuqueja)tin@morochita:~/lab/tuqueja$ git --no-pager log --author=Martín --since="2 weeks ago" --format="%ad %s" --date=short | tail
2014-09-25 the ip bug
2014-09-25 suggestion 7200
2014-09-24 repo sorl
2014-09-24 thumb png
2014-09-24 main media
2014-09-24 no queries for s3
2014-09-24 no queries for s3
2014-09-24 sorl is buggy
2014-09-24 Merge branch 'release' of bitbucket.org:tqs/tqs into release
2014-09-24 keep the format

Timesheet printing HH:SS instead of HH:MM

Just ran the script on my computer and it was printing the time in HH:SS instead of HH:MM.

I am on Mac OSX Mountain Lion.

I am using:
Git version 1.8.4.
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.