Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }