Browse Source

Merge pull request #35 from Rpinski/master

A "Git Show Log..." menu command
pull/33/merge
Siegfried Oleg Pammer 13 years ago
parent
commit
f14ca6ce9f
  1. 4
      src/AddIns/VersionControl/GitAddIn/GitAddIn.addin
  2. 8
      src/AddIns/VersionControl/GitAddIn/Src/Commands.cs
  3. 5
      src/AddIns/VersionControl/GitAddIn/Src/GitGuiWrapper.cs

4
src/AddIns/VersionControl/GitAddIn/GitAddIn.addin

@ -36,6 +36,10 @@ @@ -36,6 +36,10 @@
label = "Git ${res:AddIns.Subversion.Diff}..."
icon = "Svn.Diff"
class = "ICSharpCode.GitAddIn.GitDiffCommand"/>
<MenuItem id = "GitLog"
label = "Git ${res:AddIns.Subversion.ShowLog}..."
class = "ICSharpCode.GitAddIn.GitLogCommand"/>
</Condition>
</Path>

8
src/AddIns/VersionControl/GitAddIn/Src/Commands.cs

@ -92,4 +92,12 @@ namespace ICSharpCode.GitAddIn @@ -92,4 +92,12 @@ namespace ICSharpCode.GitAddIn
GitGuiWrapper.Diff(filename, callback);
}
}
public class GitLogCommand : GitCommand
{
protected override void Run(string filename, Action callback)
{
GitGuiWrapper.Log(filename, callback);
}
}
}

5
src/AddIns/VersionControl/GitAddIn/Src/GitGuiWrapper.cs

@ -95,5 +95,10 @@ namespace ICSharpCode.GitAddIn @@ -95,5 +95,10 @@ namespace ICSharpCode.GitAddIn
{
Proc("diff", fileName, callback);
}
public static void Log(string fileName, Action callback)
{
Proc("log", fileName, callback);
}
}
}

Loading…
Cancel
Save