Merge branch 'sr/blame-incomplete'
* sr/blame-incomplete: blame: make sure that the last line ends in an LF
This commit is contained in:
@ -1604,6 +1604,9 @@ static void emit_porcelain(struct scoreboard *sb, struct blame_entry *ent)
|
|||||||
} while (ch != '\n' &&
|
} while (ch != '\n' &&
|
||||||
cp < sb->final_buf + sb->final_buf_size);
|
cp < sb->final_buf + sb->final_buf_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sb->final_buf_size && cp[-1] != '\n')
|
||||||
|
putchar('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
static void emit_other(struct scoreboard *sb, struct blame_entry *ent, int opt)
|
static void emit_other(struct scoreboard *sb, struct blame_entry *ent, int opt)
|
||||||
@ -1667,6 +1670,9 @@ static void emit_other(struct scoreboard *sb, struct blame_entry *ent, int opt)
|
|||||||
} while (ch != '\n' &&
|
} while (ch != '\n' &&
|
||||||
cp < sb->final_buf + sb->final_buf_size);
|
cp < sb->final_buf + sb->final_buf_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sb->final_buf_size && cp[-1] != '\n')
|
||||||
|
putchar('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
static void output(struct scoreboard *sb, int option)
|
static void output(struct scoreboard *sb, int option)
|
||||||
|
Reference in New Issue
Block a user