| 1028 | } |
| 1029 | |
| 1030 | static void rewrap_message_tail(struct strbuf *sb, |
| 1031 | struct format_commit_context *c, |
| 1032 | size_t new_width, size_t new_indent1, |
| 1033 | size_t new_indent2) |
| 1034 | { |
| 1035 | if (c->width == new_width && c->indent1 == new_indent1 && |
| 1036 | c->indent2 == new_indent2) |
| 1037 | return; |
| 1038 | if (c->wrap_start < sb->len) |
| 1039 | strbuf_wrap(sb, c->wrap_start, c->width, c->indent1, c->indent2); |
| 1040 | c->wrap_start = sb->len; |
| 1041 | c->width = new_width; |
| 1042 | c->indent1 = new_indent1; |
| 1043 | c->indent2 = new_indent2; |
| 1044 | } |
| 1045 | |
| 1046 | static int format_reflog_person(struct strbuf *sb, |
| 1047 | char part, |
no test coverage detected