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); }