gitstats: Licensed GitStats under the Apache License, 2.0
[git-stats.git] / doc / gitstats-index.txt
blob517260f9dd9d6fcf80d377c371e291ecf5ab7fe9
1 syntax: stats.py index <options>
3 The purpose of the index module is to gather statistics
4 about the index, or related to the index.
6 Currently the available metrics in the index module are the
7 following:
8 * List all the commits that touch the same files as the
9   staged files. This can be useful to find out which commit
10   introduced the bug fixed in this commit (by piping the
11   output of this method to one that looks at which lines
12   were touched for example).
14 It also defines the following auxiliary functions:
15 * Get all the staged changes (optionally ignoring newly
16   added files). This is used internally to find all the
17   commits that touched the same files as those that are
18   currently staged.