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

Function write_pack_opts_pack_prefix

repack.c:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75const char *write_pack_opts_pack_prefix(const struct write_pack_opts *opts)
76{
77 const char *pack_prefix;
78 if (!skip_prefix(opts->packtmp, opts->packdir, &pack_prefix))
79 die(_("pack prefix %s does not begin with objdir %s"),
80 opts->packtmp, opts->packdir);
81 if (*pack_prefix == '/')
82 pack_prefix++;
83 return pack_prefix;
84}
85
86bool write_pack_opts_is_local(const struct write_pack_opts *opts)
87{

Callers 2

write_filtered_packFunction · 0.85
write_cruft_packFunction · 0.85

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected