{"id":17011545,"url":"https://github.com/ruin0x11/jikyuu","last_synced_at":"2025-03-17T09:31:09.840Z","repository":{"id":41850179,"uuid":"361313612","full_name":"Ruin0x11/jikyuu","owner":"Ruin0x11","description":"Estimate the amount of time spent working on a Git repository","archived":false,"fork":false,"pushed_at":"2024-04-02T11:07:42.000Z","size":33,"stargazers_count":25,"open_issues_count":7,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T22:11:44.600Z","etag":null,"topics":["cli","git","rust","statistics"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ruin0x11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-25T02:36:20.000Z","updated_at":"2024-05-21T09:20:36.000Z","dependencies_parsed_at":"2024-10-27T12:49:30.838Z","dependency_job_id":"603c3006-d074-4654-a375-4c9b4aa3d56a","html_url":"https://github.com/Ruin0x11/jikyuu","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"16c3bf8aded0b1438ad842308924853265e1b6be"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruin0x11%2Fjikyuu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruin0x11%2Fjikyuu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruin0x11%2Fjikyuu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruin0x11%2Fjikyuu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ruin0x11","download_url":"https://codeload.github.com/Ruin0x11/jikyuu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858929,"owners_count":20359260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","git","rust","statistics"],"created_at":"2024-10-14T06:07:23.755Z","updated_at":"2025-03-17T09:31:09.521Z","avatar_url":"https://github.com/Ruin0x11.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jikyuu (時給)\n\nA tool to estimate the amount of time spent working on a Git repository.\n\nIt is a direct port of [git-hours](https://github.com/kimmobrunfeldt/git-hours), written in Node.js, because the code was many years out of date and no longer builds.\n\nNote that the information provided is only a rough estimate.\n\n## Installation\n\n```sh\ncargo install jikyuu\n```\n\n## Example\n\n``` sh\ngit clone https://github.com/twbs/bootstrap\ncd bootstrap\njikyuu\n```\n\n```\n+----------------+-------------------------+---------+-----------------+\n| Author         | Email                   | Commits | Estimated Hours |\n|                |                         |         |                 |\n| Mark Otto      | markdotto@gmail.com     | 2902    | 1808.9833       |\n| Mark Otto      | otto@github.com         | 2516    | 1709.4          |\n| XhmikosR       | xhmikosr@gmail.com      | 1431    | 1612.4667       |\n| Chris Rebert   | code@rebertia.com       | 945     | 1019.3          |\n| Jacob Thornton | jacobthornton@gmail.com | 826     | 740.35          |\n| Mark Otto      | markotto@twitter.com    | 858     | 663.7167        |\n| \u003c...\u003e          |                         |         |                 |\n|                |                         |         |                 |\n| Total          |                         | 16639   | 15041.153       |\n+----------------+-------------------------+---------+-----------------+\n```\n\nYou can associate an author that has used multiple emails in the commit logs with the `--email` (`-e`) option.\n\n``` sh\njikyuu -e markotto@twitter.com=markdotto@gmail.com \\\n       -e otto@github.com=markdotto@gmail.com \\\n       -e markd.otto@gmail.com=markdotto@gmail.com \\\n       -e mark.otto@twitter.com=markdotto@gmail.com\n\n```\n\n```\n+-----------------+---------------------------+---------+-----------------+\n| Author          | Email                     | Commits | Estimated Hours |\n|                 |                           |         |                 |\n| Mark Otto       | markdotto@gmail.com       | 6880    | 4662.817        |\n| XhmikosR        | xhmikosr@gmail.com        | 1431    | 1612.4667       |\n| Chris Rebert    | code@rebertia.com         | 945     | 1019.3          |\n| Jacob Thornton  | jacobthornton@gmail.com   | 826     | 740.35          |\n| Martijn Cuppens | martijn.cuppens@gmail.com | 361     | 508.5           |\n| \u003c...\u003e           |                           |         |                 |\n+-----------------+---------------------------+---------+-----------------+\n```\n\nUse `--format json` (`-f`) to output the data as a JSON array.\n\n```json5\n[\n  {\n    \"email\": \"markdotto@gmail.com\",\n    \"author_name\": \"Mark Otto\",\n    \"hours\": 4662.817,\n    \"commit_count\": 6880\n  },\n  {\n    \"email\": \"xhmikosr@gmail.com\",\n    \"author_name\": \"XhmikosR\",\n    \"hours\": 1612.4667,\n    \"commit_count\": 1431\n  },\n\n  // ...\n\n  {\n    \"email\": null,\n    \"author_name\": \"Total\",\n    \"hours\": 14826.803,\n    \"commit_count\": 16639\n  }\n]\n```\n\n## Algorithm\n\nSee the [How it works](https://github.com/kimmobrunfeldt/git-hours#how-it-works) section of the git-hours README.\n\n## Usage\n\nRun the following command to estimate the time spent for the provided Git repository.\n\n```sh\njikyuu /path/to/git/repo/\n```\n\nThe path must point to the root of the Git repo, not any subdirectories inside of it.\n\nExtended usage:\n\n```\nUSAGE:\n    jikyuu [FLAGS] [OPTIONS] \u003cREPO_PATH\u003e\n\nFLAGS:\n    -h, --help              Prints help information\n    -m, --merge-requests    Include merge requests into calculation\n    -V, --version           Prints version information\n\nOPTIONS:\n    -b, --branch \u003cbranch\u003e                                                Analyze only data on the specified branch\n    -t, --branch-type \u003clocal|remote\u003e\n            Type of branch that `branch` refers to. `local` means refs/heads/, `remote` means refs/remotes/.\n\n    -e, --email \u003cOTHER_EMAIL=MAIN_EMAIL\u003e...\n            Associate all commits that have a secondary email with a primary email\n\n    -a, --first-commit-add \u003cMINUTES\u003e\n            How many minutes first commit of session should add to total [default: 120]\n\n    -f, --format \u003cformat\u003e\n             [default: stdout]  [possible values: Stdout, Json]\n\n    -d, --max-commit-diff \u003cMINUTES\u003e\n            Maximum difference in minutes between commits counted to one session [default: 120]\n\n    -s, --since \u003calways|today|yesterday|thisweek|lastweek|YYYY-mm-dd\u003e\n            Analyze data since certain date [default: always]\n\n    -u, --until \u003calways|today|yesterday|thisweek|lastweek|YYYY-mm-dd\u003e\n            Analyze data until certain date [default: always]\n\n\nARGS:\n    \u003cREPO_PATH\u003e    Root path of the Git repository to analyze.\n```\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruin0x11%2Fjikyuu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruin0x11%2Fjikyuu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruin0x11%2Fjikyuu/lists"}