{"id":13512332,"url":"https://github.com/tomgi/git_stats","last_synced_at":"2025-04-13T06:18:04.424Z","repository":{"id":4943564,"uuid":"6100717","full_name":"tomgi/git_stats","owner":"tomgi","description":"GitStats is a git repository statistics generator.","archived":false,"fork":false,"pushed_at":"2024-05-08T03:48:26.000Z","size":35652,"stargazers_count":1085,"open_issues_count":53,"forks_count":155,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-13T06:18:00.556Z","etag":null,"topics":["git","statistics-generator"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"getlantern/lantern","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomgi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2012-10-06T07:22:38.000Z","updated_at":"2025-03-14T16:31:09.000Z","dependencies_parsed_at":"2024-06-19T17:10:35.438Z","dependency_job_id":"4d7538c9-e259-445f-9fef-eb9eca7d0a42","html_url":"https://github.com/tomgi/git_stats","commit_stats":{"total_commits":188,"total_committers":22,"mean_commits":8.545454545454545,"dds":"0.18617021276595747","last_synced_commit":"cb0af46e187ce718d78ced6d3b13540ca874897b"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgi%2Fgit_stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgi%2Fgit_stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgi%2Fgit_stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgi%2Fgit_stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomgi","download_url":"https://codeload.github.com/tomgi/git_stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670437,"owners_count":21142905,"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":["git","statistics-generator"],"created_at":"2024-08-01T03:01:44.228Z","updated_at":"2025-04-13T06:18:04.406Z","avatar_url":"https://github.com/tomgi.png","language":"Ruby","readme":"# GitStats [![Build Status](https://secure.travis-ci.org/tomgi/git_stats.svg)](https://secure.travis-ci.org/tomgi/git_stats) [![Build Status](https://codeclimate.com/badge.png)](https://codeclimate.com/github/tomgi/git_stats)\n\nGitStats is a git repository statistics generator.\nIt browses the repository and outputs html page with statistics.\n\n## Examples\n* [devise](http://tomgi.github.com/git_stats/examples/devise/index.html)\n* [devise_invitable](http://tomgi.github.com/git_stats/examples/devise_invitable/index.html)\n* [john](http://tomgi.github.com/git_stats/examples/john/index.html)\n* [jquery](http://tomgi.github.com/git_stats/examples/jquery/index.html)\n* [merit](http://tomgi.github.com/git_stats/examples/merit/index.html)\n* [paperclip](http://tomgi.github.com/git_stats/examples/paperclip/index.html)\n* [rails](http://tomgi.github.com/git_stats/examples/rails/index.html)\n\n## Installation\n\n### Existing ruby/gem environment\n\n    $ gem install git_stats\n    \n### debian stretch (9.*)\n\n    # apt-get install ruby ruby-nokogiri ruby-nokogiri-diff ruby-nokogumbo\n    # gem install git_stats\n    \n### Ubuntu\n\n    $ sudo apt-get install ruby ruby-dev gcc zlib1g-dev make\n    $ sudo gem install git_stats\n\n## Usage\n\n### Generator\n\n#### Print help\n\n    $ git_stats\n    Commands:\n      git_stats generate        # Generates the statistics of a repository\n      git_stats help [COMMAND]  # Describe available commands or one specific command\n\n#### Print help of the generate command\n\n    $ git_stats help generate\n    Usage:\n      git_stats generate\n\n    Options:\n      p, [--path=PATH]                          # Path to repository from which statistics should be generated.\n                                                # Default: .\n      o, [--out-path=OUT_PATH]                  # Output path where statistics should be written.\n                                                # Default: ./git_stats\n      l, [--language=LANGUAGE]                  # Language of written statistics.\n                                                # Default: en\n      f, [--first-commit-sha=FIRST_COMMIT_SHA]  # Commit from where statistics should start.\n      t, [--last-commit-sha=LAST_COMMIT_SHA]    # Commit where statistics should stop.\n                                                # Default: HEAD\n      s, [--silent], [--no-silent]              # Silent mode. Don't output anything.\n      d, [--tree=TREE]                          # Tree where statistics should be generated.\n                                                # Default: .\n      c, [--comment-string=COMMENT_STRING]      # The string which is used for comments.\n                                                # Default: //\n\n    Generates the statistics of a repository\n\n\n\n#### Start generator with default settings\n\n    $ git_stats generate\n      git rev-list --pretty=format:'%h|%at|%ai|%aE' HEAD | grep -v commit\n      git shortlog -se HEAD\n      ...\n\n#### Start generator with some parameters in long and short form.\n\n    $ git_stats generate -o stats --langugage de\n      git rev-list --pretty=format:'%h|%at|%ai|%aE' HEAD | grep -v commit\n      git shortlog -se HEAD\n      ...\n\n### API usage example\n\n    \u003e repo = GitStats::GitData::Repo.new(path: '.', first_commit_sha: 'abcd1234', last_commit_sha: 'HEAD')\n    \u003e repo.authors\n    =\u003e [...]\n    \u003e repo.commits\n    =\u003e [...]\n    \u003e commit.files\n    =\u003e [...]\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.\n5. Push to the branch (`git push origin my-new-feature`)\n6. Create new Pull Request\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomgi%2Fgit_stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomgi%2Fgit_stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomgi%2Fgit_stats/lists"}