MCPcopy Create free account
hub / github.com/git/git / update_comment_bufs

Function update_comment_bufs

sequencer.c:1929–1937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1927}
1928
1929static void update_comment_bufs(struct strbuf *buf1, struct strbuf *buf2, int n)
1930{
1931 strbuf_setlen(buf1, strlen(comment_line_str) + 1);
1932 strbuf_addf(buf1, _(nth_commit_msg_fmt), n);
1933 strbuf_addch(buf1, '\n');
1934 strbuf_setlen(buf2, strlen(comment_line_str) + 1);
1935 strbuf_addf(buf2, _(skip_nth_commit_msg_fmt), n);
1936 strbuf_addch(buf2, '\n');
1937}
1938
1939/*
1940 * Comment out any un-commented commit messages, updating the message comments

Callers 1

Calls 3

strbuf_setlenFunction · 0.85
strbuf_addfFunction · 0.85
strbuf_addchFunction · 0.85

Tested by

no test coverage detected