Ejemplo n.º 1
0
        public GitCli(IReactiveProcessFactory factory, string checkoutPath, string repository, string userName, string userEmail)
        {
            this.reactiveProcessFactory = factory;
            this.checkoutPath           = checkoutPath;
            this.repository             = repository;
            this.userName  = userName;
            this.userEmail = userEmail;

            this.ensureInitialized = new AsyncLazy <Unit>(() => this.Initialize());
        }
Ejemplo n.º 2
0
        public LocalRepositoryState(IReactiveProcessFactory factory, IRepositoryOrchestration orchestration, IOptions <GitRepositoryOptions> options)
        {
            cli = new GitCli(factory, checkoutPath: options.Value.CheckoutPath, repository: options.Value.Repository, userName: options.Value.UserName, userEmail: options.Value.UserEmail);

            this.remoteBranchesAsync = BuildRemoteBranches();
        }
Ejemplo n.º 3
0
 public GitCli(IReactiveProcessFactory factory, IOptions <GitRepositoryOptions> options)
 {
     this.reactiveProcessFactory = factory;
     this.checkoutPath           = options.Value.CheckoutPath;
     this.repository             = options.Value.Repository;
 }