Skip to content

Commit 013e05e

Browse files
committed
docs: update worktree detection description to reflect git invocation for config
Change 'pure-filesystem' to 'mostly filesystem-based' and add note that git may be invoked from a trusted system path to inspect effective configuration for recursive submodule detection.
1 parent 4555ae9 commit 013e05e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ local working tree:
662662
- `git stash drop` / `git stash clear` (stash is shared across worktrees)
663663
- `git worktree remove --force` (could delete another worktree)
664664

665-
Detection is fail-closed and pure-filesystem — no shelling out to git:
665+
Detection is fail-closed and mostly filesystem-based:
666666

667667
- A linked worktree is identified by a `.git` *file* containing `gitdir:` whose
668668
resolved git directory contains a `commondir` file. Main worktrees and
@@ -673,6 +673,8 @@ Detection is fail-closed and pure-filesystem — no shelling out to git:
673673
- Relaxation is disabled if cwd becomes unknown (e.g., after `cd`/`pushd`),
674674
if `--git-dir` / `--work-tree` is passed, or if `GIT_DIR` / `GIT_WORK_TREE`
675675
/ `GIT_COMMON_DIR` is set in the environment.
676+
- Git may be invoked from a trusted system path to inspect effective config that
677+
could make submodule operations recursive.
676678

677679
### Shell Wrapper Detection
678680

0 commit comments

Comments
 (0)