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

Function create_temp

merge-ll.c:177–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175};
176
177static void create_temp(mmfile_t *src, char *path, size_t len)
178{
179 int fd;
180
181 xsnprintf(path, len, ".merge_file_XXXXXX");
182 fd = xmkstemp(path);
183 if (write_in_full(fd, src->ptr, src->size) < 0)
184 die_errno("unable to write temp-file");
185 close(fd);
186}
187
188/*
189 * User defined low-level merge driver support.

Callers 1

ll_ext_mergeFunction · 0.85

Calls 4

xsnprintfFunction · 0.85
xmkstempFunction · 0.85
write_in_fullFunction · 0.85
die_errnoFunction · 0.85

Tested by

no test coverage detected