| 213 | } |
| 214 | |
| 215 | static struct reftable_table **stack_copy_tables(struct reftable_stack *st, |
| 216 | size_t cur_len) |
| 217 | { |
| 218 | struct reftable_table **cur = reftable_calloc(cur_len, sizeof(*cur)); |
| 219 | if (!cur) |
| 220 | return NULL; |
| 221 | for (size_t i = 0; i < cur_len; i++) |
| 222 | cur[i] = st->tables[i]; |
| 223 | return cur; |
| 224 | } |
| 225 | |
| 226 | static int reftable_stack_reload_once(struct reftable_stack *st, |
| 227 | const char **names, |
no test coverage detected