19 references to IsSameWorktreeScope
aspire (2)
Backchannel\AppHostConnectionResolver.cs (1)
300return GitWorktree.IsSameWorktreeScope(
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
222return GitWorktree.IsSameWorktreeScope(normalizedAppHostPath, normalizedWorkingDirectory);
Aspire.Cli.Tests (17)
Git\GitWorktreeTests.cs (17)
376Assert.False(GitWorktree.IsSameWorktreeScope(nestedAppHost, primaryRoot)); 377Assert.True(GitWorktree.IsSameWorktreeScope(primaryAppHost, primaryRoot)); 378Assert.True(GitWorktree.IsSameWorktreeScope(nestedAppHost, worktreeRoot)); 379Assert.False(GitWorktree.IsSameWorktreeScope(primaryAppHost, worktreeRoot)); 395Assert.True(GitWorktree.IsSameWorktreeScope(submoduleAppHost, worktreeRoot)); 396Assert.False(GitWorktree.IsSameWorktreeScope(submoduleAppHost, primaryRoot)); 411Assert.True(GitWorktree.IsSameWorktreeScope(submoduleAppHost, primaryRoot)); 421Assert.True(GitWorktree.IsSameWorktreeScope(appHostPath, primaryRoot)); 432Assert.False(GitWorktree.IsSameWorktreeScope(repoBAppHost, repoARoot)); 433Assert.False(GitWorktree.IsSameWorktreeScope(Path.Combine(repoARoot, "App", "App.csproj"), repoBRoot)); 448Assert.True(GitWorktree.IsSameWorktreeScope(repoBSubmoduleAppHost, repoBRoot)); 449Assert.False(GitWorktree.IsSameWorktreeScope(repoBSubmoduleAppHost, repoARoot)); 460Assert.False(GitWorktree.IsSameWorktreeScope(Path.Combine(worktreeRoot, "App", "App.csproj"), primaryRoot)); 461Assert.False(GitWorktree.IsSameWorktreeScope(Path.Combine(primaryRoot, "App", "App.csproj"), worktreeRoot)); 471Assert.True(GitWorktree.IsSameWorktreeScope(appHostPath, workingDirectory)); 482Assert.False(GitWorktree.IsSameWorktreeScope(unmanagedAppHost, primaryRoot)); 483Assert.False(GitWorktree.IsSameWorktreeScope(Path.Combine(primaryRoot, "App", "App.csproj"), unmanagedDirectory));