Commit reduction function computes a single telemetry stream representing commit in the project. See the following section for the type of commit information it can represent.
Table 28.5.
| Parameter | Description | Default |
|---|---|---|
| mode | One of 'Commit' or 'TopLevelWorkspace'. 'Commit' counts the number of file-commits. 'TopLevelWorkspace' counts the number of top level workspaces where at least one commit occurs. | Commit |
| filePattern | Ant-like file pattern specifying the files to be included in computation. | ** |
| isCumulative | If true, an cumulative version of telemetry stream is returned. | false |
Example 28.7. Commit
streams CommitStream(filePattern, cumulative) = {
"Commits",
Commit("Commit", filePattern, cumulative)
};
y-axis yAxis(label) = {label};
chart CommitChart(filePattern) = {
"File Commits",
(CommitStream(filePattern, "false"), yAxis("File Commit Count"))
};
draw CommitChart("**");

This telemetry chart shows file commit count for the project.