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

Function rename_tmp_packfile

pack-write.c:541–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541static void rename_tmp_packfile(struct repository *repo,
542 struct strbuf *name_prefix, const char *source,
543 const char *ext)
544{
545 size_t name_prefix_len = name_prefix->len;
546
547 strbuf_addstr(name_prefix, ext);
548 if (finalize_object_file(repo, source, name_prefix->buf))
549 die("unable to rename temporary file to '%s'",
550 name_prefix->buf);
551 strbuf_setlen(name_prefix, name_prefix_len);
552}
553
554void rename_tmp_packfile_idx(struct repository *repo,
555 struct strbuf *name_buffer,

Callers 2

rename_tmp_packfile_idxFunction · 0.70
stage_tmp_packfilesFunction · 0.70

Calls 4

strbuf_addstrFunction · 0.85
finalize_object_fileFunction · 0.85
strbuf_setlenFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected