MCPcopy Create free account
hub / github.com/dailydotdev/apps / getMainCheckoutRoot

Function getMainCheckoutRoot

scripts/copy-worktree-files.js:76–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76function getMainCheckoutRoot() {
77 const mainWorktree = tryGit(['worktree', 'list', '--porcelain'])
78 ?.split('\n')
79 .find((line) => line.startsWith('worktree '));
80
81 return mainWorktree ? mainWorktree.slice('worktree '.length) : null;
82}
83
84function isIgnored(entry, cwd) {
85 try {

Callers 1

copyWorktreeFilesFunction · 0.85

Calls 1

tryGitFunction · 0.85

Tested by

no test coverage detected