Esempio n. 1
0
        public async Task UndoCommitAsync(Commit commit)
        {
            using (progress.ShowDialog($"Undo commit {commit} ..."))
            {
                R result = await gitCommitService.UndoCommitAsync(commit.RealCommitSha.Sha, CancellationToken.None);

                if (result.IsFaulted)
                {
                    message.ShowWarning($"Failed to undo.\n{result.Message}");
                }
            }
        }