| 102 | } |
| 103 | |
| 104 | static 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 | |
| 114 | static void add_path_to_list(struct path_walk_context *ctx, |
| 115 | const char *path, |
no test coverage detected