docs: graph: remove unnecessary `graph_update()' call
authorMichael Witten <mfwitten@gmail.com>
Sat, 6 Oct 2018 04:20:16 +0000 (04:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Oct 2018 01:10:49 +0000 (10:10 +0900)
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>
Documentation/technical/api-history-graph.txt
index 729d6a0cf31e872eef537fbfb87a0ed68b84bc0e..d0d1707c8c88560196eeb0d8bfe3be3362b682ea 100644 (file)
@@ -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;