-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace SignatureResponse and CommitEntity with Committer
A recent PR added CommitEntity but we already had SignatureResponse expressly for this purpose. So this commit renames SignatureResponse to Committer and removes CommitEntity and replaces it with Committer.
- Loading branch information
Showing
18 changed files
with
93 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using System; | ||
using System.Diagnostics; | ||
using System.Globalization; | ||
|
||
namespace Octokit | ||
{ | ||
/// <summary> | ||
/// Represents the author or committer to a Git commit. This is the information stored in Git and should not be | ||
/// confused with GitHub account information. | ||
/// </summary> | ||
[DebuggerDisplay("{DebuggerDisplay,nq}")] | ||
public class Committer | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Committer"/> class. | ||
/// </summary> | ||
public Committer() { } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Committer"/> class. | ||
/// </summary> | ||
/// <param name="name">The full name of the author or committer.</param> | ||
/// <param name="email">The email.</param> | ||
/// <param name="date">The date.</param> | ||
public Committer(string name, string email, DateTimeOffset date) | ||
{ | ||
Name = name; | ||
Email = email; | ||
Date = date; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the name of the author or committer. | ||
/// </summary> | ||
/// <value> | ||
/// The name. | ||
/// </value> | ||
public string Name { get; protected set; } | ||
|
||
/// <summary> | ||
/// Gets the email of the author or committer. | ||
/// </summary> | ||
/// <value> | ||
/// The email. | ||
/// </value> | ||
public string Email { get; protected set; } | ||
|
||
/// <summary> | ||
/// Gets the date of the author or contributor's contributions. | ||
/// </summary> | ||
/// <value> | ||
/// The date. | ||
/// </value> | ||
public DateTimeOffset Date { get; protected set; } | ||
|
||
internal string DebuggerDisplay | ||
{ | ||
get { return String.Format(CultureInfo.InvariantCulture, "Name: {0} Email: {1} Date: {2}", Name, Email, Date); } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.