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

Function get_pathname

path.c:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static struct strbuf *get_pathname(void)
31{
32 static struct strbuf pathname_array[4] = {
33 STRBUF_INIT, STRBUF_INIT, STRBUF_INIT, STRBUF_INIT
34 };
35 static int index;
36 struct strbuf *sb = &pathname_array[index];
37 index = (index + 1) % ARRAY_SIZE(pathname_array);
38 strbuf_reset(sb);
39 return sb;
40}
41
42static const char *cleanup_path(const char *path)
43{

Callers 2

mkpathFunction · 0.85
worktree_git_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected