From d4b49d2afbaafe3a9e09ca5fa3e14e82bf9d4ea8 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:19:41 -0700 Subject: Drop a comment restating git's read_tree contract --- source/ui-blob.c | 4 ---- source/ui-plain.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/source/ui-blob.c b/source/ui-blob.c index 4690bb5..0ea5141 100644 --- a/source/ui-blob.c +++ b/source/ui-blob.c @@ -34,10 +34,6 @@ static void peel_to_commit(struct object_id *oid) oidcpy(oid, &commit->object.oid); } -/* - * read_tree reads the return value as a direction rather than a status, so - * READ_TREE_RECURSIVE means step into this entry and zero means step over it. - */ static int walk_tree(const struct object_id *oid, struct strbuf *base, const char *pathname, unsigned mode, void *context) { diff --git a/source/ui-plain.c b/source/ui-plain.c index 57e4699..fc39af2 100644 --- a/source/ui-plain.c +++ b/source/ui-plain.c @@ -159,10 +159,6 @@ static void print_dir_tail(void) html("\n\n\n"); } -/* - * read_tree reads the return value as a direction rather than a status, so - * READ_TREE_RECURSIVE means step into this entry and zero means step over it. - */ static int walk_tree(const struct object_id *oid, struct strbuf *base, const char *pathname, unsigned mode, void *context) { -- cgit 2.11.1