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>

Michael Witten committed Oct 6, 2018 at 04:20 UTC 634dbd0ad84fe8490e87246a1804ae287bb7e3bb
1 file changed -1
Documentation/technical/api-history-graph.txt
-1
@@ -115,7 +115,6 @@ struct commit *commit;
115 struct git_graph *graph = graph_init(opts);
116
117 while ((commit = get_revision(opts)) != NULL) {
118 - graph_update(graph, commit);
118 while (!graph_is_commit_finished(graph))
119 {
120 struct strbuf sb;