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

Function fdopen_tempfile

tempfile.c:266–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266FILE *fdopen_tempfile(struct tempfile *tempfile, const char *mode)
267{
268 if (!is_tempfile_active(tempfile))
269 BUG("fdopen_tempfile() called for inactive object");
270 if (tempfile->fp)
271 BUG("fdopen_tempfile() called for open object");
272
273 tempfile->fp = fdopen(tempfile->fd, mode);
274 return tempfile->fp;
275}
276
277const char *get_tempfile_path(struct tempfile *tempfile)
278{

Callers 6

fdopen_lock_fileFunction · 0.85
update_info_fileFunction · 0.85
midx_snapshot_refsFunction · 0.85
write_with_updatesFunction · 0.85
schtasks_schedule_taskFunction · 0.85
crontab_update_scheduleFunction · 0.85

Calls 1

is_tempfile_activeFunction · 0.85

Tested by

no test coverage detected