doc: fix syntax error and the format of printf
PATCH 1/1 doc: fix syntax error and the format of printf
From: Zoker <[email protected]>
Fix syntax and correct the format of printf in MyFirstObjectWalk.txt
Signed-off-by Zoker <[email protected]>
---
MyFirstObjectWalk: fix syntax error and the format of printf
Fix the syntax of code hint and correct the format of printf in MyFirstObjectWalk.txt
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1029%2Fkesin%2Fcorrect-my-first-object-walk-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1029/kesin/correct-my-first-object-walk-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1029
Documentation/MyFirstObjectWalk.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/MyFirstObjectWalk.txt +2 -2
@@ -691,7 +691,7 @@ help understand. In our case, that means we omit trees and blobs not directly referenced by `HEAD` or `HEAD`'s history, because we begin the walk with only `HEAD` in the `pending` list.) -First, we'll need to `#include "list-objects-filter-options.h`" and set up the +First, we'll need to `#include "list-objects-filter-options.h"` and set up the `struct list_objects_filter_options` at the top of the function. ----
@@ -779,7 +779,7 @@ Count all the objects within and modify the print statement: while ((oid = oidset_iter_next(&oit))) omitted_count++; - printf("commits %d\nblobs %d\ntags %d\ntrees%d\nomitted %d\n", + printf("commits %d\nblobs %d\ntags %d\ntrees %d\nomitted %d\n", commit_count, blob_count, tag_count, tree_count, omitted_count); ----
base-commit: c4203212e360b25a1c69467b5a8437d45a373cac
Signature · 1 line
gitgitgadget