From 16583f25aeb3c83e73cf40bf6b41995d6ebafcdc Mon Sep 17 00:00:00 2001 From: Jonas Boesch Date: Tue, 26 Mar 2013 13:45:24 +0100 Subject: [PATCH] Extended GitCommit with a property to retrieve the git author name/email tuple. --- GitTfs/Core/GitCommit.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/GitTfs/Core/GitCommit.cs b/GitTfs/Core/GitCommit.cs index e2adcd83..f30d9649 100644 --- a/GitTfs/Core/GitCommit.cs +++ b/GitTfs/Core/GitCommit.cs @@ -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 AuthorAndEmail + { + get + { + var a = _commit.Author; + return new Tuple(a.Name, a.Email); + } + } } -} \ No newline at end of file +} +