| 991 | } |
| 992 | |
| 993 | long 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 | |
| 1008 | int refs_delete_ref(struct ref_store *refs, const char *msg, |
| 1009 | const char *refname, |
no test coverage detected