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

Function strbuf_replace

trailer.c:140–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140static inline void strbuf_replace(struct strbuf *sb, const char *a, const char *b)
141{
142 const char *ptr = strstr(sb->buf, a);
143 if (ptr)
144 strbuf_splice(sb, ptr - sb->buf, strlen(a), b, strlen(b));
145}
146
147static void free_trailer_item(struct trailer_item *item)
148{

Callers 1

apply_commandFunction · 0.85

Calls 1

strbuf_spliceFunction · 0.85

Tested by

no test coverage detected