Permalink
Browse files

Return Id for GitObject.ToString()

  • Loading branch information...
1 parent 874a47e commit 69582c415fca6169afe000c9e0378f04815d6580 @dahlbyk dahlbyk committed Mar 20, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 LibGit2Sharp/GitObject.cs
View
9 LibGit2Sharp/GitObject.cs
@@ -141,6 +141,15 @@ public override int GetHashCode()
return !Equals(left, right);
}
+ /// <summary>
+ /// Returns the <see cref = "Id" />, a <see cref = "String" /> representation of the current <see cref = "GitObject" />.
+ /// </summary>
+ /// <returns>The <see cref = "Id" /> that represents the current <see cref = "GitObject" />.</returns>
+ public override string ToString()
+ {
+ return Id.ToString();
+ }
+
private string DebuggerDisplay
{
get { return Id.ToString(7); }

0 comments on commit 69582c4

Please sign in to comment.