GitNexus/docs
samuel mbabhazi b51852cacf
Some checks failed
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Gitleaks / gitleaks (push) Waiting to run
Publish / Classify release event (push) Waiting to run
Publish / RC guard (marker + release-PR skip) (push) Blocked by required conditions
Publish / ci (push) Blocked by required conditions
Publish / Publish to npm (push) Blocked by required conditions
Publish / Build & Push RC Docker images (push) Blocked by required conditions
Scorecard / Scorecard analysis (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-cli) (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-web) (push) Waiting to run
Skill copy sync / shipped skills drift guard (push) Has been cancelled
fix(wiki): use the repository that contains a given folder or file (#4043)
* fix(wiki): use the repository that contains a given folder or file

`gitnexus wiki <path>` took the path as the repository root. A folder
inside an indexed repository failed with "No GitNexus index found at
<folder>/.gitnexus", and a file with "Not a git repository", while
`gitnexus wiki` with no path, run from that folder, worked.

A file now stands for its folder, and a folder without an index of its
own uses the index of the repository that contains it. A folder that was
analyzed on its own keeps its index, and any other storage state is
reported as before.

Fixes #493

* fix(wiki): keep the fallback inside the repository that contains the path

Review follow-ups for #493. The fallback moves to the git root only when
the root contains the folder once symlinks are resolved, so an exported
GIT_DIR and GIT_WORK_TREE can no longer select another checkout. It also
applies when the folder resolved to the repository's own storage, as
with GITNEXUS_STORAGE_PATH, and no longer applies when the folder's slot
could not be read.

A path that cannot be stat'ed is left to the git check, which reports
"Not a git repository" as before instead of a stack trace, and the error
names the repository when its own storage cannot be used.

---------

Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
2026-11-23 20:10:33 +00:00
..
languages feat(r): add R language support (#3513) 2026-11-19 17:16:27 +00:00
optimize perf(core): speed up HTTP embedding resume by reusing verified file hashes (#4040) 2026-11-23 08:47:27 +00:00
plans feat: add the test scenario map and a Vitest 5 mutation runner (#3686) 2026-10-27 16:46:58 +00:00
solutions/performance-issues perf(core): speed up HTTP embedding resume by reusing verified file hashes (#4040) 2026-11-23 08:47:27 +00:00
cli-reference.md fix(ingestion): spill lexical scopes under heap pressure for all PDG languages (#4028) 2026-11-22 11:23:21 +00:00
deployment.md feat(web): resolve a root-relative GITNEXUS_BACKEND_URL against the page origin (#3640) 2026-10-24 08:45:24 +01:00
editor-setup.md fix(hooks): read a shell search past npx, sudo and git grep (#4024) 2026-11-20 15:17:47 +00:00
mcp-reference.md fix(mcp): avoid Git scans and repeated metadata parsing during discovery (#4000) 2026-11-19 10:34:02 +00:00
wiki-generation.md fix(wiki): use the repository that contains a given folder or file (#4043) 2026-11-23 20:10:33 +00:00