MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / resolve_worktree_source

Method resolve_worktree_source

src/commands/task_args.rs:102–105  ·  view source on GitHub ↗

Finds the worktree root from `--repo` or current directory. Returns `None` if the path is a normal repository (not a worktree).

(&self)

Source from the content-addressed store, hash-verified

100 /// Finds the worktree root from `--repo` or current directory.
101 /// Returns `None` if the path is a normal repository (not a worktree).
102 pub fn resolve_worktree_source(&self) -> Result<Option<PathBuf>, Box<dyn Error>> {
103 let start_path = self.repo.as_deref().unwrap_or(".");
104 find_worktree_root(Path::new(start_path))
105 }
106
107 /// Creates and configures a TaskBuilder with all shared fields.
108 ///

Callers 1

configure_builderMethod · 0.80

Calls 1

find_worktree_rootFunction · 0.85

Tested by

no test coverage detected