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

Function push_to_stack

path-walk.c:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static void push_to_stack(struct path_walk_context *ctx,
105 const char *path)
106{
107 if (strset_contains(&ctx->path_stack_pushed, path))
108 return;
109
110 strset_add(&ctx->path_stack_pushed, path);
111 prio_queue_put(&ctx->path_stack, xstrdup(path));
112}
113
114static void add_path_to_list(struct path_walk_context *ctx,
115 const char *path,

Callers 3

add_tree_entriesFunction · 0.85
setup_pending_objectsFunction · 0.85
walk_objects_by_pathFunction · 0.85

Calls 4

strset_containsFunction · 0.85
strset_addFunction · 0.85
prio_queue_putFunction · 0.85
xstrdupFunction · 0.85

Tested by

no test coverage detected