private void SetComputedPaths() { this.NamedPipeName = EnlistmentUtils.GetNamedPipeName(this.EnlistmentRoot); this.DotGVFSRoot = Path.Combine(this.EnlistmentRoot, GVFSConstants.DotGVFSPath); this.GVFSLogsRoot = Path.Combine(this.DotGVFSRoot, GVFSConstants.GVFSLogFolderName); /* TODO: Story 957530 Remove code using GVFS_HEAD with next breaking change. */ this.GVFSHeadFile = Path.Combine(this.DotGVFSRoot, GVFSConstants.GVFSHeadCommitName); }
public static GVFSEnlistment CreateFromDirectory(string directory, string cacheServerUrl, string gitBinRoot, string gvfsHooksRoot) { if (Directory.Exists(directory)) { string enlistmentRoot = EnlistmentUtils.GetEnlistmentRoot(directory); if (enlistmentRoot != null) { return(new GVFSEnlistment(enlistmentRoot, cacheServerUrl, gitBinRoot, gvfsHooksRoot)); } } return(null); }
public static GVFSEnlistment CreateWithoutRepoUrlFromDirectory(string directory, string gitBinRoot) { if (Directory.Exists(directory)) { string enlistmentRoot = EnlistmentUtils.GetEnlistmentRoot(directory); if (enlistmentRoot != null) { return(new GVFSEnlistment(enlistmentRoot, gitBinRoot)); } } return(null); }
public static string GetMutexName(string enlistmentRoot) { string pipeName = EnlistmentUtils.GetNamedPipeName(enlistmentRoot); return("Global\\" + pipeName.Replace('\\', ':')); }
private void SetComputedPaths() { this.NamedPipeName = EnlistmentUtils.GetNamedPipeName(this.EnlistmentRoot); this.DotGVFSRoot = Path.Combine(this.EnlistmentRoot, GVFSConstants.DotGVFSPath); this.GVFSLogsRoot = Path.Combine(this.DotGVFSRoot, GVFSConstants.GVFSLogFolderName); }