MCPcopy Index your code
hub / github.com/git/git / rewrap_message_tail

Function rewrap_message_tail

pretty.c:1030–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1028}
1029
1030static 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
1046static int format_reflog_person(struct strbuf *sb,
1047 char part,

Callers 2

format_commit_oneFunction · 0.85

Calls 1

strbuf_wrapFunction · 0.85

Tested by

no test coverage detected