Skip to content

Commit 8c6df2c

Browse files
author
Nathan Roe
committed
Updated to match new gitextensions plugin interface
1 parent a3d9553 commit 8c6df2c

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_ReSharper.GitTfs.GitExtensions.Plugin
2+
[Bb]in
3+
*.user
4+
*.suo
5+
[Oo]bj

GitTfsPlugin.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ public void Register(IGitUICommands gitUiCommands)
2727

2828
}
2929

30-
public void Execute(GitUIBaseEventArgs gitUiCommands)
30+
public bool Execute(GitUIBaseEventArgs gitUiCommands)
3131
{
32-
if (string.IsNullOrEmpty(gitUiCommands.GitWorkingDir)) return;
32+
if (string.IsNullOrEmpty(gitUiCommands.GitWorkingDir))
33+
{
34+
return false;
35+
}
3336

3437
var remotes = GetTfsRemotes(gitUiCommands.GitUICommands);
3538

@@ -42,6 +45,8 @@ public void Execute(GitUIBaseEventArgs gitUiCommands)
4245
MessageBox.Show("The active repository has no TFS remotes.", "git-tfs Error",
4346
MessageBoxButtons.OK, MessageBoxIcon.Error);
4447
}
48+
49+
return true;
4550
}
4651

4752
private static IEnumerable<string> GetTfsRemotes(IGitUICommands commands)

gitextensions

Submodule gitextensions updated 273 files

0 commit comments

Comments
 (0)