public ITask UpdateFileLog(string path) { var task = GitClient.LogFile(path) .Then(logEntries => { var gitFileLog = new GitFileLog(path, logEntries); GitFileLogUpdated?.Invoke(gitFileLog); }); return(HookupHandlers(task, false)); }
protected override void MaybeUpdateData() { if (Repository == null) { return; } if (currentFileLogHasUpdate) { currentFileLogHasUpdate = false; gitFileLog = Repository.CurrentFileLog; BuildHistoryControl(0, gitFileLog.LogEntries); } if (currentStatusEntriesHasUpdate) { currentStatusEntriesHasUpdate = false; gitStatusEntries = Repository.CurrentChanges; } }
private void RepositoryManagerOnGitFileLogUpdated(GitFileLog gitFileLog) { taskManager.RunInUI(() => cacheContainer.GitFileLogCache.FileLog = gitFileLog); }