MCPcopy
hub / github.com/shareAI-lab/learn-claude-code / _find

Method _find

agents/s12_worktree_task_isolation.py:271–276  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

269 self.index_path.write_text(json.dumps(data, indent=2))
270
271 def _find(self, name: str) -> dict | None:
272 idx = self._load_index()
273 for wt in idx.get("worktrees", []):
274 if wt.get("name") == name:
275 return wt
276 return None
277
278 def _validate_name(self, name: str):
279 if not re.fullmatch(r"[A-Za-z0-9._-]{1,40}", name or ""):

Callers 5

createMethod · 0.95
statusMethod · 0.95
runMethod · 0.95
removeMethod · 0.95
keepMethod · 0.95

Calls 2

_load_indexMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected