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

Function get_lock_path

lockfile.c:96–100  ·  view source on GitHub ↗

* Path generation helpers. * Given base path "foo", generate: * - lock path: "foo.lock" * - pid path: "foo-pid.lock" */

Source from the content-addressed store, hash-verified

94 * - pid path: "foo-pid.lock"
95 */
96static void get_lock_path(struct strbuf *out, const char *path)
97{
98 strbuf_addstr(out, path);
99 strbuf_addstr(out, LOCK_SUFFIX);
100}
101
102static void get_pid_path(struct strbuf *out, const char *path)
103{

Callers 2

lock_fileFunction · 0.85
unable_to_lock_messageFunction · 0.85

Calls 1

strbuf_addstrFunction · 0.85

Tested by

no test coverage detected