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

Function strbuf_cleanup_path

path.c:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static void strbuf_cleanup_path(struct strbuf *sb)
53{
54 const char *path = cleanup_path(sb->buf);
55 if (path > sb->buf)
56 strbuf_remove(sb, 0, path - sb->buf);
57}
58
59int dir_prefix(const char *buf, const char *dir)
60{

Callers 5

repo_git_pathvFunction · 0.85
mkpathdupFunction · 0.85
do_worktree_pathFunction · 0.85
do_submodule_pathFunction · 0.85
repo_common_pathvFunction · 0.85

Calls 2

cleanup_pathFunction · 0.85
strbuf_removeFunction · 0.85

Tested by

no test coverage detected