From 42ce44e00a4ea6d40634172683e0cae354f7b39e Mon Sep 17 00:00:00 2001 From: Michael Witten Date: Sat, 6 Oct 2018 04:20:09 +0000 Subject: [PATCH 1/3] docs: typo: s/go/to/ Signed-off-by: Michael Witten Signed-off-by: Junio C Hamano --- Documentation/technical/api-history-graph.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/technical/api-history-graph.txt b/Documentation/technical/api-history-graph.txt index 18142b6d29..729d6a0cf3 100644 --- a/Documentation/technical/api-history-graph.txt +++ b/Documentation/technical/api-history-graph.txt @@ -80,7 +80,7 @@ Calling sequence it is invoked. * For each commit, call `graph_next_line()` repeatedly, until - `graph_is_commit_finished()` returns non-zero. Each call go + `graph_is_commit_finished()` returns non-zero. Each call to `graph_next_line()` will output a single line of the graph. The resulting lines will not contain any newlines. `graph_next_line()` returns 1 if the resulting line contains the current commit, or 0 if this is merely a line From 634dbd0ad84fe8490e87246a1804ae287bb7e3bb Mon Sep 17 00:00:00 2001 From: Michael Witten Date: Sat, 6 Oct 2018 04:20:16 +0000 Subject: [PATCH 2/3] 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 Signed-off-by: Junio C Hamano --- Documentation/technical/api-history-graph.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/technical/api-history-graph.txt b/Documentation/technical/api-history-graph.txt index 729d6a0cf3..d0d1707c8c 100644 --- a/Documentation/technical/api-history-graph.txt +++ b/Documentation/technical/api-history-graph.txt @@ -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; From ad0b8f9575a4fd5b21c4903871ea8bae09878ec5 Mon Sep 17 00:00:00 2001 From: Michael Witten Date: Sat, 6 Oct 2018 04:20:22 +0000 Subject: [PATCH 3/3] docs: typo: s/isimilar/similar/ Signed-off-by: Michael Witten Signed-off-by: Junio C Hamano --- Documentation/git-rebase.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt index 1fbc6ebcde..432baabe33 100644 --- a/Documentation/git-rebase.txt +++ b/Documentation/git-rebase.txt @@ -954,7 +954,7 @@ command fails, it is rescheduled immediately, with a helpful message how to proceed. The `reset` command resets the HEAD, index and worktree to the specified -revision. It is isimilar to an `exec git reset --hard