| 187 | } |
| 188 | |
| 189 | static void add_merge(struct branch *branch, const char *name) |
| 190 | { |
| 191 | struct refspec_item *merge; |
| 192 | |
| 193 | ALLOC_GROW(branch->merge, branch->merge_nr + 1, |
| 194 | branch->merge_alloc); |
| 195 | |
| 196 | merge = xcalloc(1, sizeof(*merge)); |
| 197 | merge->src = xstrdup(name); |
| 198 | |
| 199 | branch->merge[branch->merge_nr++] = merge; |
| 200 | } |
| 201 | |
| 202 | struct branches_hash_key { |
| 203 | const char *str; |
no test coverage detected