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

Function activate_tempfile

tempfile.c:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static void activate_tempfile(struct tempfile *tempfile)
115{
116 static int initialized;
117
118 if (!initialized) {
119 sigchain_push_common(remove_tempfiles_on_signal);
120 atexit(remove_tempfiles_on_exit);
121 initialized = 1;
122 }
123
124 volatile_list_add(&tempfile->list, &tempfile_list);
125 tempfile->owner = getpid();
126}
127
128static void deactivate_tempfile(struct tempfile *tempfile)
129{

Callers 5

create_tempfile_modeFunction · 0.85
register_tempfileFunction · 0.85
mks_tempfile_smFunction · 0.85
mks_tempfile_tsmFunction · 0.85
mks_tempfile_dtFunction · 0.85

Calls 2

sigchain_push_commonFunction · 0.85
volatile_list_addFunction · 0.85

Tested by

no test coverage detected