From f2382990742bff816ec54883e6204ededc378e7f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 6 Aug 2026 21:09:57 -1000 Subject: Settle the names, types and layout of the sources --- source/ui-blame.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'source/ui-blame.c') diff --git a/source/ui-blame.c b/source/ui-blame.c index 1132f43..418e3ae 100644 --- a/source/ui-blame.c +++ b/source/ui-blame.c @@ -173,13 +173,6 @@ static void print_object(const struct object_id *oid, const char *path, html("
blob is binary.
"); goto cleanup; } - if (ctx.cfg.max_blob_size && size / 1024 > ctx.cfg.max_blob_size) { - htmlf("
blob size (%ldKB)" - " exceeds display size limit (%dKB).
", - size / 1024, ctx.cfg.max_blob_size); - goto cleanup; - } - html("\n\n"); /* Commit hashes */ @@ -247,7 +240,9 @@ static int walk_tree(const struct object_id *oid, struct strbuf *base, { struct walk_tree_context *walk_tree_ctx = cbdata; - if (base->len == walk_tree_ctx->match_baselen) { + // match_baselen is -1 when no path was given, which no length equals. + if (walk_tree_ctx->match_baselen >= 0 && + base->len == (size_t)walk_tree_ctx->match_baselen) { if (S_ISREG(mode)) { struct strbuf buffer = STRBUF_INIT; strbuf_addbuf(&buffer, base); -- cgit v2.8.0