using System; using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Encapsulates the parameters for a request to retrieve commits. /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class CommitRequest : RequestParameters { /// /// SHA or branch to start listing commits from. /// public string Sha { get; set; } /// /// Only commits containing this file path will be returned. /// public string Path { get; set; } /// /// GitHub login or email address by which to filter by commit author. /// public string Author { get; set; } /// /// Only commits after this date will be returned. /// public DateTimeOffset? Since { get; set; } /// /// Only commits before this date will be returned. /// public DateTimeOffset? Until { get; set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Sha: {0} ", Sha); } } } }