@ -40,6 +40,10 @@
<MenuItem id = "GitLog"
label = "Git ${res:AddIns.Subversion.ShowLog}..."
class = "ICSharpCode.GitAddIn.GitLogCommand"/>
<MenuItem id = "GitBlame"
label = "Git ${res:AddIns.Subversion.Blame}..."
class = "ICSharpCode.GitAddIn.GitBlameCommand"/>
</Condition>
</Path>
@ -100,4 +100,12 @@ namespace ICSharpCode.GitAddIn
GitGuiWrapper.Log(filename, callback);
}
public class GitBlameCommand : GitCommand
{
protected override void Run(string filename, Action callback)
GitGuiWrapper.Blame(filename, callback);
@ -100,5 +100,10 @@ namespace ICSharpCode.GitAddIn
Proc("log", fileName, callback);
public static void Blame(string fileName, Action callback)
Proc("blame", fileName, callback);