From 99f43c6b9b8b8ae32129b21081a6de26b64de9ec Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 17 Oct 2026 12:53:16 -1000 Subject: Correct three comments that drifted from the code --- source/ui-blob.c | 2 +- source/ui-tag.h | 3 ++- source/ui-tree.c | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'source') diff --git a/source/ui-blob.c b/source/ui-blob.c index 1a759a7..e1503e0 100644 --- a/source/ui-blob.c +++ b/source/ui-blob.c @@ -59,7 +59,7 @@ static int walk_tree(const struct object_id *oid, struct strbuf *base, /* * oid comes in naming a commit and goes out naming the blob found at path, - * which both callers rely on. The path has to be writable because a pathspec + * which every caller relies on. The path has to be writable because a pathspec * item does not hold a const string. */ static int find_path_oid(struct object_id *oid, char *path, int file_only) diff --git a/source/ui-tag.h b/source/ui-tag.h index 864d29c..6a8e3c2 100644 --- a/source/ui-tag.h +++ b/source/ui-tag.h @@ -1,7 +1,8 @@ /* * The tag page, which shows a single ref under refs/tags on its own. It is * one repository command among those in cmd.c, reached with the tag name in - * the id query string parameter, and the branch and tag listings link to it. + * the id query string parameter or, failing that, in h, which is what the + * branch and tag listings link with. */ #ifndef CGIT_UI_TAG_H diff --git a/source/ui-tree.c b/source/ui-tree.c index bee750c..58bd7f0 100644 --- a/source/ui-tree.c +++ b/source/ui-tree.c @@ -54,15 +54,15 @@ struct only_child { size_t count; }; -/* - * The anchors are handed over in batches rather than a write per line, and - * never built whole, which would come to several times the blob's size. - */ static void add_linenumber(struct strbuf *numbers, size_t lineno) { strbuf_addf(numbers, "%zu\n", lineno, lineno, lineno); } +/* + * The anchors are handed over in batches rather than a write per line, and + * never built whole, which would come to several times the blob's size. + */ static void print_linenumbers(const char *buf, size_t size) { struct strbuf numbers = STRBUF_INIT; -- cgit