https://github.com/ruin0x11/jikyuu

Estimate the amount of time spent working on a Git repository

https://github.com/ruin0x11/jikyuu

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.8%) to scientific vocabulary

Keywords

cli git rust statistics
Last synced: 5 months ago · JSON representation

Repository

Estimate the amount of time spent working on a Git repository

Basic Info
  • Host: GitHub
  • Owner: Ruin0x11
  • License: mit
  • Language: Rust
  • Default Branch: master
  • Homepage:
  • Size: 32.2 KB
Statistics
  • Stars: 25
  • Watchers: 2
  • Forks: 7
  • Open Issues: 7
  • Releases: 0
Topics
cli git rust statistics
Created almost 5 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License

README.md

jikyuu (時給)

A tool to estimate the amount of time spent working on a Git repository.

It is a direct port of git-hours, written in Node.js, because the code was many years out of date and no longer builds.

Note that the information provided is only a rough estimate.

Installation

sh cargo install jikyuu

Example

sh git clone https://github.com/twbs/bootstrap cd bootstrap jikyuu

+----------------+-------------------------+---------+-----------------+ | Author | Email | Commits | Estimated Hours | | | | | | | Mark Otto | markdotto@gmail.com | 2902 | 1808.9833 | | Mark Otto | otto@github.com | 2516 | 1709.4 | | XhmikosR | xhmikosr@gmail.com | 1431 | 1612.4667 | | Chris Rebert | code@rebertia.com | 945 | 1019.3 | | Jacob Thornton | jacobthornton@gmail.com | 826 | 740.35 | | Mark Otto | markotto@twitter.com | 858 | 663.7167 | | <...> | | | | | | | | | | Total | | 16639 | 15041.153 | +----------------+-------------------------+---------+-----------------+

You can associate an author that has used multiple emails in the commit logs with the --email (-e) option.

``` sh jikyuu -e markotto@twitter.com=markdotto@gmail.com \ -e otto@github.com=markdotto@gmail.com \ -e markd.otto@gmail.com=markdotto@gmail.com \ -e mark.otto@twitter.com=markdotto@gmail.com

```

+-----------------+---------------------------+---------+-----------------+ | Author | Email | Commits | Estimated Hours | | | | | | | Mark Otto | markdotto@gmail.com | 6880 | 4662.817 | | XhmikosR | xhmikosr@gmail.com | 1431 | 1612.4667 | | Chris Rebert | code@rebertia.com | 945 | 1019.3 | | Jacob Thornton | jacobthornton@gmail.com | 826 | 740.35 | | Martijn Cuppens | martijn.cuppens@gmail.com | 361 | 508.5 | | <...> | | | | +-----------------+---------------------------+---------+-----------------+

Use --format json (-f) to output the data as a JSON array.

```json5 [ { "email": "markdotto@gmail.com", "authorname": "Mark Otto", "hours": 4662.817, "commitcount": 6880 }, { "email": "xhmikosr@gmail.com", "authorname": "XhmikosR", "hours": 1612.4667, "commitcount": 1431 },

// ...

{ "email": null, "authorname": "Total", "hours": 14826.803, "commitcount": 16639 } ] ```

Algorithm

See the How it works section of the git-hours README.

Usage

Run the following command to estimate the time spent for the provided Git repository.

sh jikyuu /path/to/git/repo/

The path must point to the root of the Git repo, not any subdirectories inside of it.

Extended usage:

``` USAGE: jikyuu [FLAGS] [OPTIONS]

FLAGS: -h, --help Prints help information -m, --merge-requests Include merge requests into calculation -V, --version Prints version information

OPTIONS: -b, --branch Analyze only data on the specified branch -t, --branch-type Type of branch that branch refers to. local means refs/heads/, remote means refs/remotes/.

-e, --email <OTHER_EMAIL=MAIN_EMAIL>...
        Associate all commits that have a secondary email with a primary email

-a, --first-commit-add <MINUTES>
        How many minutes first commit of session should add to total [default: 120]

-f, --format <format>
         [default: stdout]  [possible values: Stdout, Json]

-d, --max-commit-diff <MINUTES>
        Maximum difference in minutes between commits counted to one session [default: 120]

-s, --since <always|today|yesterday|thisweek|lastweek|YYYY-mm-dd>
        Analyze data since certain date [default: always]

-u, --until <always|today|yesterday|thisweek|lastweek|YYYY-mm-dd>
        Analyze data until certain date [default: always]

ARGS: Root path of the Git repository to analyze. ```

License

MIT.

Owner

  • Login: Ruin0x11
  • Kind: user

GitHub Events

Total
Last Year

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 15
  • Total Committers: 1
  • Avg Commits per committer: 15.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Ruin0x11 i****2@g****m 15

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 6
  • Total pull requests: 3
  • Average time to close issues: 1 day
  • Average time to close pull requests: N/A
  • Total issue authors: 3
  • Total pull request authors: 3
  • Average comments per issue: 1.67
  • Average comments per pull request: 1.67
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Eiim (2)
  • marekyggdrasil (2)
  • Nate-Wilkins (2)
Pull Request Authors
  • Nate-Wilkins (2)
  • heggemsnes (1)
  • marekyggdrasil (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cargo 3,791 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
crates.io: jikyuu

Estimate the amount of time you've spent working on a Git repository

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 3,791 Total
Rankings
Forks count: 20.3%
Stargazers count: 21.1%
Dependent repos count: 29.3%
Average: 30.6%
Dependent packages count: 33.8%
Downloads: 48.3%
Maintainers (1)
Last synced: 6 months ago

Dependencies

Cargo.lock cargo
  • aho-corasick 0.7.15
  • ansi_term 0.11.0
  • anyhow 1.0.40
  • arrayref 0.3.6
  • arrayvec 0.5.2
  • atty 0.2.14
  • autocfg 1.0.1
  • base64 0.13.0
  • bitflags 1.2.1
  • blake2b_simd 0.5.11
  • bstr 0.2.15
  • byteorder 1.4.3
  • cc 1.0.67
  • cfg-if 1.0.0
  • chrono 0.4.19
  • clap 2.33.3
  • constant_time_eq 0.1.5
  • crossbeam-utils 0.8.3
  • csv 1.1.6
  • csv-core 0.1.10
  • dirs 1.0.5
  • encode_unicode 0.3.6
  • form_urlencoded 1.0.1
  • getrandom 0.1.16
  • git2 0.13.18
  • hermit-abi 0.1.18
  • idna 0.2.3
  • itoa 0.4.7
  • jobserver 0.1.22
  • lazy_static 1.4.0
  • libc 0.2.93
  • libgit2-sys 0.12.19+1.1.0
  • libssh2-sys 0.2.21
  • libz-sys 1.1.2
  • log 0.4.14
  • matches 0.1.8
  • memchr 2.3.4
  • num-integer 0.1.44
  • num-traits 0.2.14
  • openssl-probe 0.1.2
  • openssl-sys 0.9.61
  • percent-encoding 2.1.0
  • pkg-config 0.3.19
  • prettytable-rs 0.8.0
  • proc-macro2 1.0.26
  • quote 1.0.9
  • redox_syscall 0.1.57
  • redox_users 0.3.5
  • regex 1.4.6
  • regex-automata 0.1.9
  • regex-syntax 0.6.23
  • rust-argon2 0.8.3
  • ryu 1.0.5
  • serde 1.0.125
  • serde_derive 1.0.125
  • serde_json 1.0.64
  • strsim 0.8.0
  • syn 1.0.70
  • term 0.5.2
  • textwrap 0.11.0
  • time 0.1.44
  • tinyvec 1.2.0
  • tinyvec_macros 0.1.0
  • unicode-bidi 0.3.5
  • unicode-normalization 0.1.17
  • unicode-width 0.1.8
  • unicode-xid 0.2.1
  • url 2.2.1
  • vcpkg 0.2.12
  • vec_map 0.8.2
  • wasi 0.9.0+wasi-snapshot-preview1
  • wasi 0.10.0+wasi-snapshot-preview1
  • winapi 0.3.9
  • winapi-i686-pc-windows-gnu 0.4.0
  • winapi-x86_64-pc-windows-gnu 0.4.0
Cargo.toml cargo