A "Git Show Log..." menu command
@ -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>
@ -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);
@ -95,5 +95,10 @@ namespace ICSharpCode.GitAddIn
Proc("diff", fileName, callback);
public static void Log(string fileName, Action callback)
Proc("log", fileName, callback);