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

Function strbuf_wrap

pretty.c:1015–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013}
1014
1015static void strbuf_wrap(struct strbuf *sb, size_t pos,
1016 size_t width, size_t indent1, size_t indent2)
1017{
1018 struct strbuf tmp = STRBUF_INIT;
1019
1020 if (pos)
1021 strbuf_add(&tmp, sb->buf, pos);
1022 strbuf_add_wrapped_text(&tmp, sb->buf + pos,
1023 cast_size_t_to_int(indent1),
1024 cast_size_t_to_int(indent2),
1025 cast_size_t_to_int(width));
1026 strbuf_swap(&tmp, sb);
1027 strbuf_release(&tmp);
1028}
1029
1030static void rewrap_message_tail(struct strbuf *sb,
1031 struct format_commit_context *c,

Callers 1

rewrap_message_tailFunction · 0.85

Calls 5

strbuf_addFunction · 0.85
strbuf_add_wrapped_textFunction · 0.85
cast_size_t_to_intFunction · 0.85
strbuf_swapFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected