diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-02-17 13:30:41 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-17 13:30:41 -0800 |
| commit | 5779c47fa0672e73ce35711e38d1a002787396f3 (patch) | |
| tree | 09ba9b0284fb52bf2abbbfa205ce6dfd761e6ef9 /environment.c | |
| parent | 852829b3dd2fe4e7c7fc4d8badde644cf1b66c74 (diff) | |
| parent | dbdcab6b89ea86fe58ece01bbb7be297ff23b2c4 (diff) | |
| download | git-5779c47fa0672e73ce35711e38d1a002787396f3.tar.xz | |
Merge branch 'pc/lockfile-pid'
Allow recording process ID of the process that holds the lock next
to a lockfile for diagnosis.
* pc/lockfile-pid:
lockfile: add PID file for debugging stale locks
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 8ffbf92d50..0026eb2274 100644 --- a/environment.c +++ b/environment.c @@ -21,6 +21,7 @@ #include "gettext.h" #include "git-zlib.h" #include "ident.h" +#include "lockfile.h" #include "mailmap.h" #include "object-name.h" #include "repository.h" @@ -508,6 +509,11 @@ int git_default_core_config(const char *var, const char *value, return 0; } + if (!strcmp(var, "core.lockfilepid")) { + lockfile_pid_enabled = git_config_bool(var, value); + return 0; + } + if (!strcmp(var, "core.createobject")) { if (!value) return config_error_nonbool(var); |
