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

Function commit_lock_file_to

lockfile.h:331–334  ·  view source on GitHub ↗

* Like `commit_lock_file()`, but rename the lockfile to the provided * `path`. `path` must be on the same filesystem as the lock file. */

Source from the content-addressed store, hash-verified

329 * `path`. `path` must be on the same filesystem as the lock file.
330 */
331static inline int commit_lock_file_to(struct lock_file *lk, const char *path)
332{
333 return rename_tempfile(&lk->tempfile, path);
334}
335
336/*
337 * Roll back `lk`: close the file descriptor and/or file pointer and

Callers 2

commit_lock_fileFunction · 0.85
commit_locked_indexFunction · 0.85

Calls 1

rename_tempfileFunction · 0.85

Tested by

no test coverage detected