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
a git worktree ( https://git-scm.com/docs/git-worktree ) has a .git directory entry that is not a folder with a config file, but rather just a plain file that points to the repo directory, e.g:
public isRepoDir(projectPath: string) {
return fs.existsSync(path.join(projectPath, ".git", "config"));
}
i'd say checking for the existence of a .git file or directory is enough to know you're in a directory that should be added as a project, but I might be missing something.
The text was updated successfully, but these errors were encountered:
I didn't know about git worktree (still moving from other VCS) and used a snippet to check for git repos. I will update the detection to support this as well.
Is it supported display worktree now?😀
I use git worktree usually by this way : git worktree add --track -b dev ../project_dev
and folder tree like this:
a git worktree ( https://git-scm.com/docs/git-worktree ) has a .git directory entry that is not a folder with a config file, but rather just a plain file that points to the repo directory, e.g:
which is not detected by
i'd say checking for the existence of a .git file or directory is enough to know you're in a directory that should be added as a project, but I might be missing something.
The text was updated successfully, but these errors were encountered: