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

Function refspec_append

refspec.c:197–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void refspec_append(struct refspec *rs, const char *refspec)
198{
199 struct refspec_item item;
200 int ret;
201
202 if (rs->fetch)
203 ret = refspec_item_init_fetch(&item, refspec);
204 else
205 ret = refspec_item_init_push(&item, refspec);
206 if (!ret)
207 die(_("invalid refspec '%s'"), refspec);
208
209 ALLOC_GROW(rs->items, rs->nr + 1, rs->alloc);
210 rs->items[rs->nr] = item;
211
212 rs->nr++;
213}
214
215void refspec_appendf(struct refspec *rs, const char *fmt, ...)
216{

Callers 15

refspec_appendfFunction · 0.85
refspec_appendnFunction · 0.85
read_remotes_fileFunction · 0.85
handle_configFunction · 0.85
match_push_refsFunction · 0.85
get_helperFunction · 0.85
cmd_fast_exportFunction · 0.85
refspec_append_mappedFunction · 0.85
set_refspecsFunction · 0.85
cmd_pushFunction · 0.85
parse_refmap_argFunction · 0.85

Calls 3

refspec_item_init_fetchFunction · 0.85
refspec_item_init_pushFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected