/git-timesheet

Compute detailed commit stats for local git repositories.

Primary LanguageRustMIT LicenseMIT

git-timesheet

Compute detailed commit stats for local git repositories.

Built as a means of learning Rust, would greatly appreciate any and all feedback.

Contents

Demo

Coming soon.

Installation

You should have Rust and Cargo installed.

  • Install with Cargo (~/.cargo/bin should be in your $PATH):

    $ cargo install --git https://github.com/kshvmdn/git-timesheet
    $ which git-timesheet
    ~/.cargo/bin/git-timesheet
  • Or, build manually:

    $ git clone https://github.com/kshvmdn/git-timesheet.git git-timesheet && cd $_
    $ cargo build --release
    $ mv target/release/git-timesheet /usr/local/bin # or any other directory in your $PATH!
    $ which git-timesheet
    /usr/local/bin/git-timesheet

Usage

git-timesheet works just like any other git subcommand. View the demo for sample output.

$ cd /path/to/git/directory
$ git timesheet
...

Contribute

This project is completely open source, feel free to open an issue or submit a pull request. Very new to Rust, would love to hear any feedback.

TODO

  • Calculate average commit rate (per hr, per day, etc) and other stats.
  • Add functionality to filter committers (by email).
  • Improve error handling.

Credits

License

git-timesheet is released under the MIT license.