public BranchService(
     IGitFetchService gitFetchService,
     IGitPushService gitPushService,
     IGitBranchService gitBranchService,
     IGitMergeService gitMergeService,
     IGitCommitService gitCommitService,
     IGitCheckoutService gitCheckoutService,
     ICommitsService commitsService,
     IProgressService progressService,
     IMessage message,
     WindowOwner owner,
     IRepositoryCommands repositoryCommands,
     Lazy <IRepositoryService> repositoryService,
     IStatusService statusService)
 {
     this.gitFetchService    = gitFetchService;
     this.gitPushService     = gitPushService;
     this.gitBranchService   = gitBranchService;
     this.gitMergeService    = gitMergeService;
     this.gitCommitService   = gitCommitService;
     this.gitCheckoutService = gitCheckoutService;
     this.commitsService     = commitsService;
     this.progress           = progressService;
     this.message            = message;
     this.owner = owner;
     this.repositoryCommands = repositoryCommands;
     this.repositoryService  = repositoryService;
     this.statusService      = statusService;
 }
예제 #2
0
 public GitCommitBranchNameService(
     WorkingFolder workingFolder,
     Lazy <IRepositoryMgr> repositoryMgr,
     IGitFetchService gitFetchService,
     IGitNotesService gitNotesService,
     IGitPushService gitPushService)
 {
     this.workingFolder   = workingFolder;
     this.repositoryMgr   = repositoryMgr;
     this.gitFetchService = gitFetchService;
     this.gitNotesService = gitNotesService;
     this.gitPushService  = gitPushService;
 }
예제 #3
0
 public RemoteService(
     IRepositoryMgr repositoryMgr,
     IProgressService progress,
     IMessage message,
     IStatusService statusService,
     IGitFetchService gitFetchService,
     IGitMergeService gitMergeService,
     IGitPushService gitPushService,
     IGitCommitBranchNameService gitCommitBranchNameService)
 {
     this.repositoryMgr              = repositoryMgr;
     this.progress                   = progress;
     this.message                    = message;
     this.statusService              = statusService;
     this.gitFetchService            = gitFetchService;
     this.gitMergeService            = gitMergeService;
     this.gitPushService             = gitPushService;
     this.gitCommitBranchNameService = gitCommitBranchNameService;
 }
예제 #4
0
        public RepositoryViewModel(
            WorkingFolder workingFolder,
            IDiffService diffService,
            ICommandLine commandLine,
            IViewModelService viewModelService,
            ICommitsService commitsService,
            IRepositoryService repositoryService,
            IGitFetchService gitFetchService,
            IThemeService themeService,
            IOpenRepoService openRepoService,
            IRecentReposService recentReposService,
            IMessage message,
            IProgressService progressService,
            Func <CommitDetailsViewModel> commitDetailsViewModelProvider)
        {
            this.workingFolder     = workingFolder;
            this.diffService       = diffService;
            this.commandLine       = commandLine;
            this.viewModelService  = viewModelService;
            this.commitsService    = commitsService;
            this.repositoryService = repositoryService;

            this.gitFetchService = gitFetchService;

            this.themeService       = themeService;
            this.openRepoService    = openRepoService;
            this.recentReposService = recentReposService;
            this.message            = message;
            this.progress           = progressService;

            VirtualItemsSource = new RepositoryVirtualItemsSource(Branches, Merges, Commits, OpenRepos);

            filterTriggerTimer.Tick    += FilterTrigger;
            filterTriggerTimer.Interval = FilterDelay;

            CommitDetailsViewModel = commitDetailsViewModelProvider();

            repositoryService.RepositoryUpdated      += (s, e) => OnRepositoryUpdated();
            repositoryService.RepositoryErrorChanged += (s, e) => FetchErrorText = e.ErrorText;
        }