MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / create_worktree

Function create_worktree

scripts/export-import-test.py:7–9  ·  view source on GitHub ↗
(path, commit, repo_root)

Source from the content-addressed store, hash-verified

5
6
7def create_worktree(path, commit, repo_root):
8 remove_worktree(path, repo_root)
9 run_command(f"git worktree add {path} {commit}", cwd=repo_root)
10
11
12def remove_worktree(path, repo_root):

Callers 1

mainFunction · 0.85

Calls 2

remove_worktreeFunction · 0.85
run_commandFunction · 0.85

Tested by

no test coverage detected