MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / new

Method new

src/sessions/shared.rs:145–151  ·  view source on GitHub ↗

Resolve the fixed project-side git identity once.

(project_root: &Path)

Source from the content-addressed store, hash-verified

143impl ProjectRootMatcher {
144 /// Resolve the fixed project-side git identity once.
145 pub(crate) fn new(project_root: &Path) -> Self {
146 Self {
147 root: project_root.to_path_buf(),
148 worktree: crate::worktree::git_worktree_root(project_root),
149 common_dir: crate::worktree::git_common_dir(project_root),
150 }
151 }
152
153 /// True when `path` belongs to this project: it is the root, shares the
154 /// project's git worktree or common dir, or discovers back to the root.

Callers

nothing calls this directly

Calls 2

git_worktree_rootFunction · 0.85
git_common_dirFunction · 0.85

Tested by

no test coverage detected