5 gitstats - git history statistics generator
9 B<gitstats> [options] <repository dir> <output dir>
13 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.
19 Override a default configuration value. Defaults can be seen by running B<gitstats> without parameters.
27 How many top authors to show.
29 =item commit_begin, commit_end
31 Specify a commit range to generate statistics from. You can specify only commit_end limit statistics to a certain commit or another branch.
33 =item linear_linestats
35 When enabled, the lines of code statistics are collected from linear history.
36 The downside is that commits of long feature branches appear only at the point
37 where a merge commit is made.
39 If disabled (old behaviour), the problem is that if two branches contain the
40 same changes (for example, removal of same lines), the statistics get skewed.
46 How many authors to show in the list of authors.
50 How many domains to show in domains by commits.
54 Maximum file extension length.
58 Number of concurrent processes to use when extracting git repository data.
62 Project name to show on the generated pages. Default is to use basename of the repository directory.
66 CSS stylesheet to use.
72 Q: How do I generate statistics of a non-master branch?
74 A: Use C<-c commit_end=web> parameter.
76 Q: I have files in my git repository that I would like to exclude from the statistics, how do I do that?
78 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.
84 =item Generates statistics from a git repository in C<foo> and outputs the result in a directory C<foo_stats>:
86 gitstats foo foo_stats
88 =item As above, but only analyzes the last 10 commits:
90 gitstats -c commit_begin='HEAD~10' foo foo_stats
96 B<gitstats> was written by Heikki Hokkanen and others.
98 See the git repository at http://repo.or.cz/w/gitstats.git for an up-to-date full list of contributors.
102 http://gitstats.sourceforge.net/