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

Function strbuf_ltrim

strbuf.c:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void strbuf_ltrim(struct strbuf *sb)
147{
148 char *b = sb->buf;
149 while (sb->len > 0 && isspace(*b)) {
150 b++;
151 sb->len--;
152 }
153 memmove(sb->buf, b, sb->len);
154 sb->buf[sb->len] = '\0';
155}
156
157int strbuf_reencode(struct strbuf *sb, const char *from, const char *to)
158{

Callers 4

shortlogFunction · 0.85
strbuf_trimFunction · 0.85
run_access_hookFunction · 0.85
bisect_runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected