mirror of
https://github.com/tomgi/git_stats.git
synced 2024-12-22 13:32:17 +01:00
GitStats is a git repository statistics generator.
8f67bcdc64
This adds 4th and 5th optional CLI parameters that specifies the first and last SHA commit to generate stats between. The generator and repo classes were changed to take these as initialisation parameters. It would be nice to have the CLI take individual named optional parameters, so that only first or last commit could be given and without having to give the language. |
||
---|---|---|
bin | ||
config/locales | ||
lib | ||
spec | ||
templates | ||
.gitignore | ||
.gitmodules | ||
.rspec | ||
Gemfile | ||
git_stats.gemspec | ||
LICENSE.txt | ||
Rakefile | ||
README.md |
GitStats
GitStats is a git repository statistics generator. It browses the repository and outputs html page with statistics.
Examples
Installation
$ gem install git_stats
Usage
Generator
$ git_stats repo_path output_directory language_code first_commit_sha last_commit_sha
$ favorite_browser output_directory/index.html
API usage example
> repo = GitStats::GitData::Repo.new(path: '.', first_commit_sha: 'abcd1234', last_commit_sha: 'HEAD')
> repo.authors
=> [...]
> repo.commits
=> [...]
> commit.files
=> [...]
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
- Push to the branch (
git push origin my-new-feature
) - Create new Pull Request