Beispiel #1
0
 /// <summary>
 /// 签出
 /// </summary>
 /// <param name="config"></param>
 /// <returns></returns>
 public Result SparseCheckoutInit(GitBaseConfig config)
 {
     if (config == null)
     {
         return(this.Process.InvokeGitInWorkingDirectoryRoot("sparse-checkout init --cone", fetchMissingObjects: true));
     }
     return(config.CreateGitProcess().InvokeGitInWorkingDirectoryRoot("sparse-checkout init --cone", fetchMissingObjects: true));
 }
Beispiel #2
0
 public CredentialService(GitBaseConfig config)
 {
     Process = config.CreateGitProcess();
 }
 public GitCommandService(GitBaseConfig config)
 {
     gitConfig = config;
     Process   = gitConfig.CreateGitProcess();
 }