Skip to content

Commit 634dbd0

Browse files
mfwittengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 42ce44e commit 634dbd0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Documentation/technical/api-history-graph.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ struct commit *commit;
115115
struct git_graph *graph = graph_init(opts);
116116

117117
while ((commit = get_revision(opts)) != NULL) {
118-
graph_update(graph, commit);
119118
while (!graph_is_commit_finished(graph))
120119
{
121120
struct strbuf sb;

0 commit comments

Comments
 (0)