You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. If you only want to see the combined history of a few branches or tags (like release branches) consider using the `--choose-branch` and `--choose-tag` options to prune the graph.
445
445
5. Use the `--since` option if you don't care about ancient history.
446
446
6. The `--graph-label` option can be useful and can be very simple: `--graph-label 'graph[label="MY LABEL"]'`.
447
+
448
+
## Summary data
449
+
The generated dot file has summary fields at the end that can be useful for post processing.
450
+
451
+
The fields are written as dot comments like this.
452
+
453
+
```
454
+
// summary:num_graph_commit_nodes 5
455
+
// summary:num_graph_merge_nodes 1
456
+
// summary:num_graph_squash_nodes 2
457
+
// summary:total_commits 12
458
+
// summary:total_graph_commit_nodes 8
459
+
```
460
+
461
+
They are described in the table below.
462
+
463
+
| Field | Description |
464
+
| ----- | ----------- |
465
+
|`// summary:num_graph_commit_nodes INT`| The total number of simple commit nodes in the graph. |
466
+
|`// summary:num_graph_merge_nodes INT`| The total nummber of merge commit nodes in the graph. |
467
+
|`// summary:num_graph_squash_nodes INT`| The total number of squash commit nodes in the graph. |
468
+
|`// summary:total_commits INT`| The total number of commits (incuding merges) with no squashing. |
469
+
|`// summary:total_graph_commit_nodes INT`| The number of actual commit nodes in the graph. |
470
+
471
+
Note that total_commits and total_graph_commit_nodes will be the same if squashing is not specified.
0 commit comments