Skip to content
Discussion options

You must be logged in to vote

Point codebase-index at the worktree directory itself. The watcher watches its configured root recursively; starting it in the main checkout does not automatically watch other linked worktrees.

# Install the optional watcher dependency in your codebase-index environment.
python -m pip install "codebase-index[watch]"

codebase-index --root /absolute/path/to/worktree index
codebase-index --root /absolute/path/to/worktree watch --debounce 500

--root is a global option, so put it before index or watch. The first command builds the index; the second keeps running and updates it after edits. Query that same root:

codebase-index --root /absolute/path/to/worktree search "your query"

Each checkout…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@allpurposepunk
Comment options

Answer selected by allpurposepunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants