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

Function flock_commit

reftable/system.c:120–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120int flock_commit(struct reftable_flock *l)
121{
122 struct lock_file *lockfile = l->priv;
123 int ret;
124
125 if (!lockfile)
126 return REFTABLE_API_ERROR;
127
128 ret = commit_lock_file(lockfile);
129 reftable_free(lockfile);
130 *l = REFTABLE_FLOCK_INIT;
131 if (ret < 0)
132 return REFTABLE_IO_ERROR;
133
134 return 0;
135}
136
137int reftable_fsync(int fd)
138{

Callers 2

reftable_addition_commitFunction · 0.85
stack_compact_rangeFunction · 0.85

Calls 2

commit_lock_fileFunction · 0.85
reftable_freeFunction · 0.85

Tested by

no test coverage detected