Browse Source

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>
maint
Michael Witten 6 years ago committed by Junio C Hamano
parent
commit
634dbd0ad8
  1. 1
      Documentation/technical/api-history-graph.txt

1
Documentation/technical/api-history-graph.txt

@ -115,7 +115,6 @@ struct commit *commit;
struct git_graph *graph = graph_init(opts); struct git_graph *graph = graph_init(opts);


while ((commit = get_revision(opts)) != NULL) { while ((commit = get_revision(opts)) != NULL) {
graph_update(graph, commit);
while (!graph_is_commit_finished(graph)) while (!graph_is_commit_finished(graph))
{ {
struct strbuf sb; struct strbuf sb;

Loading…
Cancel
Save