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

Function fdopen_lock_file

lockfile.h:249–252  ·  view source on GitHub ↗

* Associate a stdio stream with the lockfile (which must still be * open). Return `NULL` (*without* rolling back the lockfile) on * error. The stream is closed automatically when * `close_lock_file_gently()` is called or when the file is committed or * rolled back. */

Source from the content-addressed store, hash-verified

247 * rolled back.
248 */
249static inline FILE *fdopen_lock_file(struct lock_file *lk, const char *mode)
250{
251 return fdopen_tempfile(lk->tempfile, mode);
252}
253
254/*
255 * Return the path of the lockfile. The return value is a pointer to a

Callers 9

write_commit_graph_fileFunction · 0.85
write_update_refs_stateFunction · 0.85
write_midx_internalFunction · 0.85
write_midx_incrementalFunction · 0.85
create_symref_lockFunction · 0.85
files_reflog_expireFunction · 0.85
dump_marksFunction · 0.85

Calls 1

fdopen_tempfileFunction · 0.85

Tested by

no test coverage detected