On 30/03/2025 05:56, Junio C Hamano wrote:
Karthik Nayak <karthik.188@xxxxxxxxx> writes:
+static void emit_porcelain_per_line_details(struct blame_entry *ent)
+{
+ if (mark_unblamable_lines && ent->unblamable)
+ puts("unblamable\n");
+ if (mark_ignored_lines && ent->ignored)
+ puts("ignored\n");
+}
Doesn't puts(3), unlike fputs(3), add its own trailing newline to
stdout?
Indeed. Perhaps the regression test would be more effective if it used
test_cmp rather than
test $(grep ^ignored actual | wc -l) -eq 2
which misses this bug and gives no output if it fails.
Best Wishes
Phillip