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

Function parse_pathspec_arg

archive.c:465–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465static void parse_pathspec_arg(const char **pathspec,
466 struct archiver_args *ar_args)
467{
468 /*
469 * must be consistent with parse_pathspec in path_exists()
470 * Also if pathspec patterns are dependent, we're in big
471 * trouble as we test each one separately
472 */
473 parse_pathspec(&ar_args->pathspec, 0, PATHSPEC_PREFER_CWD,
474 ar_args->prefix, pathspec);
475 ar_args->pathspec.recursive = 1;
476 if (pathspec) {
477 while (*pathspec) {
478 if (**pathspec && !path_exists(ar_args, *pathspec))
479 die(_("pathspec '%s' did not match any files"), *pathspec);
480 pathspec++;
481 }
482 }
483}
484
485static void parse_treeish_arg(const char **argv,
486 struct archiver_args *ar_args, int remote)

Callers 1

write_archiveFunction · 0.85

Calls 3

parse_pathspecFunction · 0.85
path_existsFunction · 0.70
dieFunction · 0.70

Tested by

no test coverage detected