diff options
Diffstat (limited to '')
-rw-r--r--source/ui-blob.c2
-rw-r--r--source/ui-tag.h3
-rw-r--r--source/ui-tree.c8
3 files changed, 7 insertions, 6 deletions
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, "<a id='n%zu' href='#n%zu'>%zu</a>\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;