using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
///
/// An enhanced git commit containing links to additional resources
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class GitHubCommitStats
{
public GitHubCommitStats() { }
public GitHubCommitStats(int additions, int deletions, int total)
{
Additions = additions;
Deletions = deletions;
Total = total;
}
///
/// The number of additions made within the commit
///
public int Additions { get; protected set; }
///
/// The number of deletions made within the commit
///
public int Deletions { get; protected set; }
///
/// The total number of modifications within the commit
///
public int Total { get; protected set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Stats: +{0} -{1} ={2}", Additions, Deletions, Total); }
}
}
}