@@ -62,7 +62,7 @@ pub fn callBody(a: std.mem.Allocator, name: []const u8, summary: []const u8, met
6262 return out.items;
6363 }
6464
65-pub fn resultLines(a: std.mem.Allocator, name: []const u8, text: []const u8) []const BodyLine {
65+pub fn resultLines(a: std.mem.Allocator, name: []const u8, text: []const u8, max_diff_lines: usize) []const BodyLine {
6666 const trimmed = std.mem.trimEnd(u8, text, " \t\r\n");
6767 var lines: std.ArrayList([]const u8) = .empty;
6868 var it = std.mem.splitScalar(u8, trimmed, '\n');
@@ -81,7 +81,7 @@ pub fn resultLines(a: std.mem.Allocator, name: []const u8, text: []const u8) []c
8181 if (verb.len > 0) {
8282 const path = lines.items[0][verb.len..];
8383 _ = lines.orderedRemove(0);
84- return diff_view.diffLines(a, path, lines.items);
84+ return diff_view.diffLines(a, path, lines.items, max_diff_lines);
8585 }
8686 }
8787 var out: std.ArrayList(BodyLine) = .empty;
@@ -89,10 +89,10 @@ pub fn resultLines(a: std.mem.Allocator, name: []const u8, text: []const u8) []c
8989 return out.items;
9090 }
9191
92-pub fn exitLine(a: std.mem.Allocator, text: []const u8, is_error: bool) ?[]const u8 {
92+pub fn exitLine(a: std.mem.Allocator, text: []const u8) ?[]const u8 {
9393 const trimmed = std.mem.trimEnd(u8, text, " \t\r\n");
9494 const last = if (std.mem.lastIndexOfScalar(u8, trimmed, '\n')) |i| trimmed[i + 1 ..] else trimmed;
9595 if (!std.mem.startsWith(u8, last, "exit code: ")) return null;
9696 const label = std.fmt.allocPrint(a, " └ exit {s}", .{last["exit code: ".len..]}) catch return null;
97- return if (is_error) styles.err(a, label) else styles.comment(a, label);
97+ return styles.comment(a, label);
9898 }