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

Function create_promisor_file

fetch-pack.c:905–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905static void create_promisor_file(const char *keep_name,
906 struct ref **sought, int nr_sought)
907{
908 struct strbuf promisor_name = STRBUF_INIT;
909 int suffix_stripped;
910
911 strbuf_addstr(&promisor_name, keep_name);
912 suffix_stripped = strbuf_strip_suffix(&promisor_name, ".keep");
913 if (!suffix_stripped)
914 BUG("name of pack lockfile should end with .keep (was '%s')",
915 keep_name);
916 strbuf_addstr(&promisor_name, ".promisor");
917
918 write_promisor_file(promisor_name.buf, sought, nr_sought);
919
920 strbuf_release(&promisor_name);
921}
922
923static void parse_gitmodules_oids(int fd, struct oidset *gitmodules_oids)
924{

Callers 1

get_packFunction · 0.85

Calls 4

strbuf_addstrFunction · 0.85
strbuf_strip_suffixFunction · 0.85
write_promisor_fileFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected