diff options
author | Michael Witten <mfwitten@gmail.com> | 2018-10-06 06:20:16 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-07 03:10:49 +0200 |
commit | 634dbd0ad84fe8490e87246a1804ae287bb7e3bb (patch) | |
tree | dbf5e1a3f077553e0b9b6cb510aade06758dc7d3 /Documentation/technical/api-history-graph.txt | |
parent | docs: typo: s/go/to/ (diff) | |
download | git-634dbd0ad84fe8490e87246a1804ae287bb7e3bb.tar.xz git-634dbd0ad84fe8490e87246a1804ae287bb7e3bb.zip |
docs: graph: remove unnecessary `graph_update()' call
The sample code calls `get_revision()' followed by `graph_update()',
but the documentation and source code indicate that `get_revision()'
already calls `graph_update()' for you.
Signed-off-by: Michael Witten <mfwitten@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | Documentation/technical/api-history-graph.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Documentation/technical/api-history-graph.txt b/Documentation/technical/api-history-graph.txt index 729d6a0cf3..d0d1707c8c 100644 --- a/Documentation/technical/api-history-graph.txt +++ b/Documentation/technical/api-history-graph.txt @@ -115,7 +115,6 @@ struct commit *commit; struct git_graph *graph = graph_init(opts); while ((commit = get_revision(opts)) != NULL) { - graph_update(graph, commit); while (!graph_is_commit_finished(graph)) { struct strbuf sb; |