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

Function strbuf_cmp

strbuf.c:235–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235int strbuf_cmp(const struct strbuf *a, const struct strbuf *b)
236{
237 size_t len = a->len < b->len ? a->len: b->len;
238 int cmp = memcmp(a->buf, b->buf, len);
239 if (cmp)
240 return cmp;
241 return a->len < b->len ? -1: a->len != b->len;
242}
243
244void strbuf_splice(struct strbuf *sb, size_t pos, size_t len,
245 const void *data, size_t dlen)

Callers 4

print_commit_summaryFunction · 0.85
handle_conflictFunction · 0.85
remove_dirsFunction · 0.85
launchctl_schedule_plistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected