import{ho as e,mo as t,po as n}from"./app-server-manager-signals-Yn0WSnoY.js";function r({cwd:e,sourceWorktreeRoot:r,repoWorktreeEntries:a}){let o=i({cwd:e,sourceWorktreeRoot:r}),s=t(r);return(a??[]).filter(e=>t(e.root)!==s).map(e=>{let t=o.length>0?n(e.root,o):e.root;return{gitRoot:e.root,workspaceRoot:t}})}function i({cwd:n,sourceWorktreeRoot:r}){let i=e(n),a=e(r).replace(/\/+$/,``),o=t(n),s=t(r).replace(/\/+$/,``);if(o===s)return``;let c=`${s}/`;if(!o.startsWith(c))return``;let l=`${a}/`;return i.slice(l.length)}export{r as t};
//# sourceMappingURL=get-move-to-local-targets-CRH-a0bJ.js.map