MCPcopy Create free account
hub / github.com/git/git / add_merge

Function add_merge

remote.c:189–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189static 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
202struct branches_hash_key {
203 const char *str;

Callers 1

handle_configFunction · 0.85

Calls 2

xcallocFunction · 0.85
xstrdupFunction · 0.85

Tested by

no test coverage detected