Skip to content

Commit

Permalink
Merge pull request gitextensions#8826 from mstv/fix/restore_interface
Browse files Browse the repository at this point in the history
Restore/expose IGitUICommands.StartRemotesDialog
  • Loading branch information
RussKie committed Feb 6, 2021
2 parents f0e6f1b + 7c1f1bb commit c3430f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions GitUI/GitUICommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,8 +1043,7 @@ bool Action()
return DoActionOnRepo(owner, Action);
}

/// <param name="preselectRemote">makes the FormRemotes initially select the given remote</param>
/// <param name="preselectLocal">makes the FormRemotes initially show tab "Default push behavior" and select the given local</param>
/// <inheritdoc/>
public bool StartRemotesDialog(IWin32Window owner, string preselectRemote = null, string preselectLocal = null)
{
bool Action()
Expand Down
7 changes: 7 additions & 0 deletions Plugins/GitUIPluginInterfaces/IGitUICommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ public interface IGitUICommands
bool StartCommandLineProcessDialog(IWin32Window owner, IGitCommand command);
void StartBatchFileProcessDialog(string batchFile);

/// <summary>
/// Opens the FormRemotes.
/// </summary>
/// <param name="preselectRemote">Makes the FormRemotes initially select the given remote.</param>
/// <param name="preselectLocal">Makes the FormRemotes initially show the tab "Default push behavior" and select the given local.</param>
bool StartRemotesDialog(IWin32Window owner, string preselectRemote = null, string preselectLocal = null);

bool StartSettingsDialog(Type pageType);
bool StartSettingsDialog(IGitPlugin gitPlugin);
void AddCommitTemplate(string key, Func<string> addingText, Image icon);
Expand Down

0 comments on commit c3430f4

Please sign in to comment.