Bump copyright year.
[gitstats.git] / doc / gitstats.pod
blob2cfbc7593780b11aea43c953b75e01ec25ea1073
1 =encoding utf8
3 =head1 NAME
5 gitstats - git history statistics generator
7 =head1 SYNOPSIS
9 B<gitstats> [options] <repository dir> <output dir>
11 =head1 DESCRIPTION
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.
15 =head1 OPTIONS
17 -c option=value
19 Override a default configuration value. Defaults can be seen by running B<gitstats> without parameters.
21 =head2 Values:
23 =over
25 =item authors_top
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.
42 Defaults to on.
44 =item max_authors
46 How many authors to show in the list of authors.
48 =item max_domains
50 How many domains to show in domains by commits.
52 =item max_ext_length
54 Maximum file extension length.
56 =item processes
58 Number of concurrent processes to use when extracting git repository data.
60 =item project_name
62 Project name to show on the generated pages. Default is to use basename of the repository directory.
64 =item style
66 CSS stylesheet to use.
68 =back
70 =head1 FAQ
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.
80 =head1 EXAMPLES
82 =over
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
92 =back
94 =head1 AUTHORS
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.
100 =head1 WWW
102 http://gitstats.sourceforge.net/
104 =head1 SEE ALSO
106 L<git(1)>