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

Function register_tempfile

tempfile.c:164–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164struct tempfile *register_tempfile(const char *path)
165{
166 struct tempfile *tempfile = new_tempfile();
167 strbuf_add_absolute_path(&tempfile->filename, path);
168 activate_tempfile(tempfile);
169 return tempfile;
170}
171
172struct tempfile *mks_tempfile_sm(const char *filename_template, int suffixlen, int mode)
173{

Callers 6

fetch_pack_indexFunction · 0.85
create_lock_pid_fileFunction · 0.85
generated_pack_populateFunction · 0.85
unpackFunction · 0.85
lock_repo_for_gcFunction · 0.85

Calls 3

new_tempfileFunction · 0.85
strbuf_add_absolute_pathFunction · 0.85
activate_tempfileFunction · 0.85

Tested by

no test coverage detected