28.6. Commit

28.6.1. Description

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.

28.6.2. Parameter

Table 28.5. 

ParameterDescriptionDefault
modeOne 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
filePatternAnt-like file pattern specifying the files to be included in computation.**
isCumulativeIf true, an cumulative version of telemetry stream is returned.false

28.6.3. Example 1

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.