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

Function get_files_ref_lock_timeout_ms

refs.c:993–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991}
992
993long get_files_ref_lock_timeout_ms(struct repository *repo)
994{
995 static int configured = 0;
996
997 /* The default timeout is 100 ms: */
998 static int timeout_ms = 100;
999
1000 if (!configured) {
1001 repo_config_get_int(repo, "core.filesreflocktimeout", &timeout_ms);
1002 configured = 1;
1003 }
1004
1005 return timeout_ms;
1006}
1007
1008int refs_delete_ref(struct ref_store *refs, const char *msg,
1009 const char *refname,

Callers 2

lock_raw_refFunction · 0.85
create_reflockFunction · 0.85

Calls 1

repo_config_get_intFunction · 0.85

Tested by

no test coverage detected