From: "Zoker via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Zoker <kaixuanguiqu@gmail.com>, Zoker <kaixuanguiqu@gmail.com>
Subject: [PATCH] doc: fix syntax error and the format of printf
Date: Sat, 28 Aug 2021 09:02:12 +0000 [thread overview]
Message-ID: <pull.1029.git.1630141332149.gitgitgadget@gmail.com> (raw)
From: Zoker <kaixuanguiqu@gmail.com>
Fix syntax and correct the format of printf in MyFirstObjectWalk.txt
Signed-off-by: Zoker <kaixuanguiqu@gmail.com>
---
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(-)
diff --git a/Documentation/MyFirstObjectWalk.txt b/Documentation/MyFirstObjectWalk.txt
index 2d10eea7a9f..45eb84d8b48 100644
--- a/Documentation/MyFirstObjectWalk.txt
+++ b/Documentation/MyFirstObjectWalk.txt
@@ -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
--
gitgitgadget
reply other threads:[~2021-08-28 9:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.1029.git.1630141332149.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=git@vger.kernel.org \
--cc=kaixuanguiqu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).