Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jlinoff authored Feb 4, 2017
1 parent 1503969 commit e989cc7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,3 +444,29 @@ $ ./git2dot.py -s -c --png --graph-label 'graph[label="git2dot v0.6", fontsize="
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.
5. Use the `--since` option if you don't care about ancient history.
6. The `--graph-label` option can be useful and can be very simple: `--graph-label 'graph[label="MY LABEL"]'`.

## Summary data
The generated dot file has summary fields at the end that can be useful for post processing.

The fields are written as dot comments like this.

```
// summary:num_graph_commit_nodes 5
// summary:num_graph_merge_nodes 1
// summary:num_graph_squash_nodes 2
// summary:total_commits 12
// summary:total_graph_commit_nodes 8
```

They are described in the table below.

| Field | Description |
| ----- | ----------- |
| `// summary:num_graph_commit_nodes INT` | The total number of simple commit nodes in the graph. |
| `// summary:num_graph_merge_nodes INT` | The total nummber of merge commit nodes in the graph. |
| `// summary:num_graph_squash_nodes INT` | The total number of squash commit nodes in the graph. |
| `// summary:total_commits INT` | The total number of commits (incuding merges) with no squashing. |
| `// summary:total_graph_commit_nodes INT` | The number of actual commit nodes in the graph. |

Note that total_commits and total_graph_commit_nodes will be the same if squashing is not specified.

0 comments on commit e989cc7

Please sign in to comment.