mirror of
https://github.com/git/git.git
synced 2024-10-29 21:37:53 +01:00
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>
This commit is contained in:
parent
42ce44e00a
commit
634dbd0ad8
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue