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

Function parse_refmap_arg

builtin/fetch.c:179–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179static int parse_refmap_arg(const struct option *opt, const char *arg, int unset)
180{
181 BUG_ON_OPT_NEG(unset);
182
183 /*
184 * "git fetch --refmap='' origin foo"
185 * can be used to tell the command not to store anywhere
186 */
187 refspec_append(opt->value, arg);
188
189 return 0;
190}
191
192static void unlock_pack(unsigned int flags)
193{

Callers

nothing calls this directly

Calls 1

refspec_appendFunction · 0.85

Tested by

no test coverage detected