diff --git a/TGit/Commands/Context/AddFileCommand.cs b/TGit/Commands/Context/AddFileCommand.cs index fa973b7..449c3cd 100644 --- a/TGit/Commands/Context/AddFileCommand.cs +++ b/TGit/Commands/Context/AddFileCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class AddFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitFileCommand("add"); } } diff --git a/TGit/Commands/Context/BlameFileCommand.cs b/TGit/Commands/Context/BlameFileCommand.cs index 9fc319f..69eb9fa 100644 --- a/TGit/Commands/Context/BlameFileCommand.cs +++ b/TGit/Commands/Context/BlameFileCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class BlameFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitFileCommand("blame", $"/line:{await FileHelper.GetActiveDocumentCurrentLine()}"); } } diff --git a/TGit/Commands/Context/CommitFileCommand.cs b/TGit/Commands/Context/CommitFileCommand.cs index f0bd1e7..3b2921c 100644 --- a/TGit/Commands/Context/CommitFileCommand.cs +++ b/TGit/Commands/Context/CommitFileCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class CommitFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - var options = await General.GetLiveInstanceAsync(); var commitMessage = await GitHelper.GetCommitMessage(options.CommitMessage); var bugId = await GitHelper.GetCommitMessage(options.BugId); diff --git a/TGit/Commands/Context/DiffFileCommand.cs b/TGit/Commands/Context/DiffFileCommand.cs index 1a22cb7..af38748 100644 --- a/TGit/Commands/Context/DiffFileCommand.cs +++ b/TGit/Commands/Context/DiffFileCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class DiffFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitFileCommand("diff"); } } diff --git a/TGit/Commands/Context/FetchFileCommand.cs b/TGit/Commands/Context/FetchFileCommand.cs index ad4c056..538fa2d 100644 --- a/TGit/Commands/Context/FetchFileCommand.cs +++ b/TGit/Commands/Context/FetchFileCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class FetchFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitFileCommand("fetch"); } } diff --git a/TGit/Commands/Context/MergeFileCommand.cs b/TGit/Commands/Context/MergeFileCommand.cs index 8709f5f..ab391a8 100644 --- a/TGit/Commands/Context/MergeFileCommand.cs +++ b/TGit/Commands/Context/MergeFileCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class MergeFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitFileCommand("merge"); } } diff --git a/TGit/Commands/Context/PrefDiffFileCommand.cs b/TGit/Commands/Context/PrefDiffFileCommand.cs index 99eb90c..c1338ff 100644 --- a/TGit/Commands/Context/PrefDiffFileCommand.cs +++ b/TGit/Commands/Context/PrefDiffFileCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using System.IO; using Task = System.Threading.Tasks.Task; @@ -12,8 +11,6 @@ internal sealed class PrefDiffFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - var filePath = await FileHelper.GetActiveDocumentFilePath(); var exactFilePath = FileHelper.GetExactFileName(filePath); diff --git a/TGit/Commands/Context/PullFileCommand.cs b/TGit/Commands/Context/PullFileCommand.cs index 6cfe983..05e603f 100644 --- a/TGit/Commands/Context/PullFileCommand.cs +++ b/TGit/Commands/Context/PullFileCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class PullFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitFileCommand("pull"); } } diff --git a/TGit/Commands/Context/RevertFileCommand.cs b/TGit/Commands/Context/RevertFileCommand.cs index 37a8c51..eee5a0a 100644 --- a/TGit/Commands/Context/RevertFileCommand.cs +++ b/TGit/Commands/Context/RevertFileCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class RevertFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitFileCommand("revert"); } } diff --git a/TGit/Commands/MainMenu/AbortMergeCommand.cs b/TGit/Commands/MainMenu/AbortMergeCommand.cs index fa42982..2cab705 100644 --- a/TGit/Commands/MainMenu/AbortMergeCommand.cs +++ b/TGit/Commands/MainMenu/AbortMergeCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class AbortMergeCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("merge", "/abort"); } } diff --git a/TGit/Commands/MainMenu/ApplyStashCommand.cs b/TGit/Commands/MainMenu/ApplyStashCommand.cs index 8a90825..baf018e 100644 --- a/TGit/Commands/MainMenu/ApplyStashCommand.cs +++ b/TGit/Commands/MainMenu/ApplyStashCommand.cs @@ -2,7 +2,6 @@ using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; using System; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -12,8 +11,6 @@ internal sealed class ApplyStashCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("reflog", "/ref:refs/stash"); } diff --git a/TGit/Commands/MainMenu/BranchCommand.cs b/TGit/Commands/MainMenu/BranchCommand.cs index cfefb00..a04d4fe 100644 --- a/TGit/Commands/MainMenu/BranchCommand.cs +++ b/TGit/Commands/MainMenu/BranchCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class BranchCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("branch"); } } diff --git a/TGit/Commands/MainMenu/BrowseRefCommand.cs b/TGit/Commands/MainMenu/BrowseRefCommand.cs index e46ab7f..926b487 100644 --- a/TGit/Commands/MainMenu/BrowseRefCommand.cs +++ b/TGit/Commands/MainMenu/BrowseRefCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class BrowseRefCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("refbrowse"); } } diff --git a/TGit/Commands/MainMenu/CleanupCommand.cs b/TGit/Commands/MainMenu/CleanupCommand.cs index c2cddcf..3b18800 100644 --- a/TGit/Commands/MainMenu/CleanupCommand.cs +++ b/TGit/Commands/MainMenu/CleanupCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class CleanupCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("cleanup"); } } diff --git a/TGit/Commands/MainMenu/CommitCommand.cs b/TGit/Commands/MainMenu/CommitCommand.cs index 2d0a7fd..4e0348a 100644 --- a/TGit/Commands/MainMenu/CommitCommand.cs +++ b/TGit/Commands/MainMenu/CommitCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class CommitCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - var options = await General.GetLiveInstanceAsync(); var commitMessage = await GitHelper.GetCommitMessage(options.CommitMessage); var bugId = await GitHelper.GetCommitMessage(options.BugId); diff --git a/TGit/Commands/MainMenu/CreateStashCommand.cs b/TGit/Commands/MainMenu/CreateStashCommand.cs index db216ed..85c676d 100644 --- a/TGit/Commands/MainMenu/CreateStashCommand.cs +++ b/TGit/Commands/MainMenu/CreateStashCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class CreateStashCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("stashsave"); } } diff --git a/TGit/Commands/MainMenu/DiskBrowserCommand.cs b/TGit/Commands/MainMenu/DiskBrowserCommand.cs index 2e821e0..3802614 100644 --- a/TGit/Commands/MainMenu/DiskBrowserCommand.cs +++ b/TGit/Commands/MainMenu/DiskBrowserCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class DiskBrowserCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - ProcessHelper.Start(await FileHelper.GetSolutionDir()); } } diff --git a/TGit/Commands/MainMenu/FetchCommand.cs b/TGit/Commands/MainMenu/FetchCommand.cs index 5cecd48..d4968ec 100644 --- a/TGit/Commands/MainMenu/FetchCommand.cs +++ b/TGit/Commands/MainMenu/FetchCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class FetchCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("fetch"); } } diff --git a/TGit/Commands/MainMenu/MergeCommand.cs b/TGit/Commands/MainMenu/MergeCommand.cs index 2aa562b..b9e4039 100644 --- a/TGit/Commands/MainMenu/MergeCommand.cs +++ b/TGit/Commands/MainMenu/MergeCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class MergeCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("merge"); } } diff --git a/TGit/Commands/MainMenu/PullCommand.cs b/TGit/Commands/MainMenu/PullCommand.cs index c8dbf71..2da9190 100644 --- a/TGit/Commands/MainMenu/PullCommand.cs +++ b/TGit/Commands/MainMenu/PullCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class PullCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("pull"); } } diff --git a/TGit/Commands/MainMenu/PushCommand.cs b/TGit/Commands/MainMenu/PushCommand.cs index 22379f6..9756598 100644 --- a/TGit/Commands/MainMenu/PushCommand.cs +++ b/TGit/Commands/MainMenu/PushCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class PushCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("push"); } } diff --git a/TGit/Commands/MainMenu/RebaseCommand.cs b/TGit/Commands/MainMenu/RebaseCommand.cs index 6f2bf9a..4c308a9 100644 --- a/TGit/Commands/MainMenu/RebaseCommand.cs +++ b/TGit/Commands/MainMenu/RebaseCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class RebaseCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("rebase"); } } diff --git a/TGit/Commands/MainMenu/RepoBrowserCommand.cs b/TGit/Commands/MainMenu/RepoBrowserCommand.cs index 0354dad..f979309 100644 --- a/TGit/Commands/MainMenu/RepoBrowserCommand.cs +++ b/TGit/Commands/MainMenu/RepoBrowserCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class RepoBrowserCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("repobrowser"); } } diff --git a/TGit/Commands/MainMenu/ResolveCommand.cs b/TGit/Commands/MainMenu/ResolveCommand.cs index 9f45769..9a8d01b 100644 --- a/TGit/Commands/MainMenu/ResolveCommand.cs +++ b/TGit/Commands/MainMenu/ResolveCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class ResolveCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("resolve"); } } diff --git a/TGit/Commands/MainMenu/RevGraphCommand.cs b/TGit/Commands/MainMenu/RevGraphCommand.cs index 96e9cc3..f9a337a 100644 --- a/TGit/Commands/MainMenu/RevGraphCommand.cs +++ b/TGit/Commands/MainMenu/RevGraphCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class RevGraphCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("revisiongraph"); } } diff --git a/TGit/Commands/MainMenu/RevertCommand.cs b/TGit/Commands/MainMenu/RevertCommand.cs index edf0b9b..7dcf65a 100644 --- a/TGit/Commands/MainMenu/RevertCommand.cs +++ b/TGit/Commands/MainMenu/RevertCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class RevertCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("revert"); } } diff --git a/TGit/Commands/MainMenu/ShowChangesCommand.cs b/TGit/Commands/MainMenu/ShowChangesCommand.cs index 6837844..b195bc3 100644 --- a/TGit/Commands/MainMenu/ShowChangesCommand.cs +++ b/TGit/Commands/MainMenu/ShowChangesCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,7 +10,6 @@ internal sealed class ShowChangesCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); await ProcessHelper.RunTortoiseGitCommand("repostatus"); } } diff --git a/TGit/Commands/MainMenu/ShowLogCommand.cs b/TGit/Commands/MainMenu/ShowLogCommand.cs index ad664f4..aee3e7c 100644 --- a/TGit/Commands/MainMenu/ShowLogCommand.cs +++ b/TGit/Commands/MainMenu/ShowLogCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class ShowLogCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("log"); } } diff --git a/TGit/Commands/MainMenu/StashPopCommand.cs b/TGit/Commands/MainMenu/StashPopCommand.cs index 93ca192..35dfe00 100644 --- a/TGit/Commands/MainMenu/StashPopCommand.cs +++ b/TGit/Commands/MainMenu/StashPopCommand.cs @@ -2,7 +2,6 @@ using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; using System; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -12,8 +11,6 @@ internal sealed class StashPopCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("stashpop"); } diff --git a/TGit/Commands/MainMenu/SwitchCommand.cs b/TGit/Commands/MainMenu/SwitchCommand.cs index b888e0d..6ac4b17 100644 --- a/TGit/Commands/MainMenu/SwitchCommand.cs +++ b/TGit/Commands/MainMenu/SwitchCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class SwitchCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("switch"); } } diff --git a/TGit/Commands/MainMenu/SyncCommand.cs b/TGit/Commands/MainMenu/SyncCommand.cs index d8d00aa..68fb3a8 100644 --- a/TGit/Commands/MainMenu/SyncCommand.cs +++ b/TGit/Commands/MainMenu/SyncCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class SyncCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("sync"); } } diff --git a/TGit/Commands/MainMenu/TagCommand.cs b/TGit/Commands/MainMenu/TagCommand.cs index 2f018bb..dca240d 100644 --- a/TGit/Commands/MainMenu/TagCommand.cs +++ b/TGit/Commands/MainMenu/TagCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class TagCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("tag"); } } diff --git a/TGit/Commands/SVN/SVNDCommitCommand.cs b/TGit/Commands/SVN/SVNDCommitCommand.cs index c258b79..57a08b6 100644 --- a/TGit/Commands/SVN/SVNDCommitCommand.cs +++ b/TGit/Commands/SVN/SVNDCommitCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class SVNDCommitCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("svndcommit"); } } diff --git a/TGit/Commands/SVN/SVNFetchCommand.cs b/TGit/Commands/SVN/SVNFetchCommand.cs index cb0dd2f..01e5898 100644 --- a/TGit/Commands/SVN/SVNFetchCommand.cs +++ b/TGit/Commands/SVN/SVNFetchCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class SVNFetchCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("svnfetch"); } } diff --git a/TGit/Commands/SVN/SVNRebaseCommand.cs b/TGit/Commands/SVN/SVNRebaseCommand.cs index caad5f2..d3d348d 100644 --- a/TGit/Commands/SVN/SVNRebaseCommand.cs +++ b/TGit/Commands/SVN/SVNRebaseCommand.cs @@ -1,7 +1,6 @@ using Community.VisualStudio.Toolkit; using Microsoft.VisualStudio.Shell; using SamirBoulema.TGit.Helpers; -using System.ComponentModel.Design; using Task = System.Threading.Tasks.Task; namespace SamirBoulema.TGit.Commands @@ -11,8 +10,6 @@ internal sealed class SVNRebaseCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await KnownCommands.File_SaveAll.ExecuteAsync(); - await ProcessHelper.RunTortoiseGitCommand("svnrebase"); } }