Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2011-05-23 23:05:24 +0400
committernulltoken <emeric.fermas@gmail.com>2011-05-24 00:46:19 +0400
commitda2a2c7b76a8dd7f4c660ba0932211d28ad372c7 (patch)
treea492c1f91666930cf2a3985fa17be32c627eb273 /LibGit2Sharp/Reference.cs
parent66bc35fa37c0e72a1bf71129dab8d0b299b43b41 (diff)
Change API to query the history of commits
Diffstat (limited to 'LibGit2Sharp/Reference.cs')
-rw-r--r--LibGit2Sharp/Reference.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/LibGit2Sharp/Reference.cs b/LibGit2Sharp/Reference.cs
index 8aad7494..387df15e 100644
--- a/LibGit2Sharp/Reference.cs
+++ b/LibGit2Sharp/Reference.cs
@@ -153,5 +153,14 @@ namespace LibGit2Sharp
{
return !Equals(left, right);
}
+
+ /// <summary>
+ /// Returns the <see cref="CanonicalName"/>, a <see cref="String"/> representation of the current <see cref="Reference"/>.
+ /// </summary>
+ /// <returns>The <see cref="CanonicalName"/> that represents the current <see cref="Reference"/>.</returns>
+ public override string ToString()
+ {
+ return CanonicalName;
+ }
}
} \ No newline at end of file