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

Function strbuf_strip_file_from_path

strbuf.c:1130–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130void strbuf_strip_file_from_path(struct strbuf *sb)
1131{
1132 const char *path_sep = find_last_dir_sep(sb->buf);
1133 strbuf_setlen(sb, path_sep ? path_sep - sb->buf + 1 : 0);
1134}

Callers 1

Calls 1

strbuf_setlenFunction · 0.85

Tested by

no test coverage detected