You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if the code respected the special var: ${workspacefolder}/ in the path so we can keep the worktrees local to the repos. What do you think?
I'm not a ts code programmer. This was generated by chatgpt but sth like:
export const calculateNewWorktreePathNew = async (workspaceFolder, branch) => {
try {
// Resolve ${workspaceFolder} if present in the input path
if (workspaceFolder.includes('${workspaceFolder}')) {
const resolvedWorkspaceFolder = vscode.workspace.workspaceFolders?.[0].uri.fsPath;
if (resolvedWorkspaceFolder) {
workspaceFolder = workspaceFolder.replace('${workspaceFolder}', resolvedWorkspaceFolder);
} else {
throw new Error('Workspace folder could not be resolved.');
}
}
...
The text was updated successfully, but these errors were encountered:
Could you please provide details on how you currently use ${workspaceFolder}, the issues you are encountering with this setup, and specific examples of how you would like it to work in the desired implementation? Any additional insights into your workflow and needs would be helpful.
sorry for the late reply i got distracted and went back to git stash for a while. Giving this a new try. The idea is to not keep all worktrees for all repos in a central place with:
because of naming conflicts within the global namespace (what if two repos are called the same: e.g. examples) and because one might want to keep the worktrees closer to the projects folder. So my thought was to have a worktree whithin the repo itself under eg. $GITREPO/.worktree/ and have .worktree be part of the gitignore. Of course this might not always be the best Option...
It would be nice if the code respected the special var: ${workspacefolder}/ in the path so we can keep the worktrees local to the repos. What do you think?
I'm not a ts code programmer. This was generated by chatgpt but sth like:
The text was updated successfully, but these errors were encountered: