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 /Documentation | |
| 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 'Documentation')
| -rw-r--r-- | Documentation/config/core.adoc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/config/core.adoc b/Documentation/config/core.adoc index 9bc9de29d9..a0ebf03e2e 100644 --- a/Documentation/config/core.adoc +++ b/Documentation/config/core.adoc @@ -348,6 +348,17 @@ confusion unless you know what you are doing (e.g. you are creating a read-only snapshot of the same index to a location different from the repository's usual working tree). +core.lockfilePid:: + If true, Git will create a PID file alongside lock files. When a + lock acquisition fails and a PID file exists, Git can provide + additional diagnostic information about the process holding the + lock, including whether it is still running. Defaults to `false`. ++ +The PID file is named by inserting `~pid` before the `.lock` suffix. +For example, if the lock file is `index.lock`, the PID file will be +`index~pid.lock`. The file contains a single line in the format +`pid <value>` followed by a newline. + core.logAllRefUpdates:: Enable the reflog. Updates to a ref <ref> is logged to the file "`$GIT_DIR/logs/<ref>`", by appending the new and old |
