Thread (33 messages) 33 messages, 2 authors, 2025-11-04
STALE240d
Revisions (3)
  1. v4 [diff vs current]
  2. v5 current
  3. v7 [diff vs current]

[PATCH v5 05/29] trailer: use bool for had_trailer_before

From: Li Chen <hidden>
Date: 2025-10-22 05:41:07
Subsystem: the rest · Maintainer: Linus Torvalds

From: Li Chen <redacted>

Switch had_trailer_before from int to bool
to match its logical use. No functional change.

Signed-off-by: Li Chen <redacted>
---
 trailer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/trailer.c b/trailer.c
index 9abb5a522a..a448380327 100644
--- a/trailer.c
+++ b/trailer.c
@@ -1266,7 +1266,7 @@ int trailer_process(const struct process_trailer_options *opts,
 	struct trailer_block *blk;
 	LIST_HEAD(orig_head);
 	struct strbuf trailers_sb = STRBUF_INIT;
-	int had_trailer_before;
+	bool had_trailer_before;
 
 	blk = parse_trailers(opts, msg, &orig_head);
 	had_trailer_before = !list_empty(&orig_head);
-- 
2.51.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help