Extended GitCommit with a property to retrieve the git author name/email tuple.

This commit is contained in:
Jonas Boesch
2013-03-26 13:45:24 +01:00
parent 4ef8c0e382
commit 16583f25ae
+13 -2
View File
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using LibGit2Sharp;
@@ -37,5 +38,15 @@ namespace Sep.Git.Tfs.Core
}
}
}
public Tuple<string,string> AuthorAndEmail
{
get
{
var a = _commit.Author;
return new Tuple<string,string>(a.Name, a.Email);
}
}
}
}
}