gitstats.pod 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. =encoding utf8
  2. =head1 NAME
  3. gitstats - git history statistics generator
  4. =head1 SYNOPSIS
  5. B<gitstats> [options] <repository dir> <output dir>
  6. =head1 DESCRIPTION
  7. B<gitstats> is a statistics generator for L<git(1)> repositories. It examines the repository and produces some interesting statistics from the history of it. Currently HTML is the only output format.
  8. =head1 OPTIONS
  9. -c option=value
  10. Override a default configuration value. Defaults can be seen by running B<gitstats> without parameters.
  11. =head2 Values:
  12. =over
  13. =item authors_top
  14. How many top authors to show.
  15. =item commit_begin, commit_end
  16. Specify a commit range to generate statistics from. You can specify only commit_end limit statistics to a certain commit or another branch.
  17. =item linear_linestats
  18. When enabled, the lines of code statistics are collected from linear history.
  19. The downside is that commits of long feature branches appear only at the point
  20. where a merge commit is made.
  21. If disabled (old behaviour), the problem is that if two branches contain the
  22. same changes (for example, removal of same lines), the statistics get skewed.
  23. Defaults to on.
  24. =item max_authors
  25. How many authors to show in the list of authors.
  26. =item max_domains
  27. How many domains to show in domains by commits.
  28. =item max_ext_length
  29. Maximum file extension length.
  30. =item processes
  31. Number of concurrent processes to use when extracting git repository data.
  32. =item project_name
  33. Project name to show on the generated pages. Default is to use basename of the repository directory.
  34. =item start_date
  35. Specify a starting date to pass with --since to git.
  36. =item style
  37. CSS stylesheet to use.
  38. =back
  39. =head1 FAQ
  40. Q: How do I generate statistics of a non-master branch?
  41. A: Use C<-c commit_end=web> parameter.
  42. Q: I have files in my git repository that I would like to exclude from the statistics, how do I do that?
  43. A: At the moment the only way is to use L<git-filter-branch(1)> to create a temporary repository and generate the statistics from that.
  44. Q: How do I merge author information when the same author has made commits using different names or emails ?
  45. A: Use git .mailmap feature described in B<MAPPING AUTHORS> of L<git-shortlog(1)>.
  46. =head1 EXAMPLES
  47. =over
  48. =item Generates statistics from a git repository in C<foo> and outputs the result in a directory C<foo_stats>:
  49. gitstats foo foo_stats
  50. =item As above, but only analyzes the last 10 commits:
  51. gitstats -c commit_begin='HEAD~10' foo foo_stats
  52. =back
  53. =head1 AUTHORS
  54. B<gitstats> was written by Heikki Hokkanen and others.
  55. See the git repository at https://github.com/hoxu/gitstats for an up-to-date full list of contributors.
  56. =head1 WWW
  57. http://gitstats.sourceforge.net/
  58. =head1 SEE ALSO
  59. L<git(1)>