зеркало из https://github.com/microsoft/git.git
Merge branch 'maint'
* maint: Documentation: undocument gc'd function graph_release()
This commit is contained in:
Коммит
f341feb86a
|
@ -11,9 +11,6 @@ Core functions:
|
||||||
|
|
||||||
* `graph_init()` creates a new `struct git_graph`
|
* `graph_init()` creates a new `struct git_graph`
|
||||||
|
|
||||||
* `graph_release()` destroys a `struct git_graph`, and frees the memory
|
|
||||||
associated with it.
|
|
||||||
|
|
||||||
* `graph_update()` moves the graph to a new commit.
|
* `graph_update()` moves the graph to a new commit.
|
||||||
|
|
||||||
* `graph_next_line()` outputs the next line of the graph into a strbuf. It
|
* `graph_next_line()` outputs the next line of the graph into a strbuf. It
|
||||||
|
@ -134,8 +131,6 @@ while ((commit = get_revision(opts)) != NULL) {
|
||||||
putchar(opts->diffopt.line_termination);
|
putchar(opts->diffopt.line_termination);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
graph_release(graph);
|
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Sample output
|
Sample output
|
||||||
|
|
1
graph.h
1
graph.h
|
@ -6,7 +6,6 @@ struct git_graph;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create a new struct git_graph.
|
* Create a new struct git_graph.
|
||||||
* The graph should be freed with graph_release() when no longer needed.
|
|
||||||
*/
|
*/
|
||||||
struct git_graph *graph_init(struct rev_info *opt);
|
struct git_graph *graph_init(struct rev_info *opt);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче