示例#1
0
        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));
        }
示例#2
0
        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;
            }
        }
示例#3
0
 private void RepositoryManagerOnGitFileLogUpdated(GitFileLog gitFileLog)
 {
     taskManager.RunInUI(() => cacheContainer.GitFileLogCache.FileLog = gitFileLog);
 }