diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-05-23 23:05:24 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2011-05-24 00:46:19 +0400 |
commit | da2a2c7b76a8dd7f4c660ba0932211d28ad372c7 (patch) | |
tree | a492c1f91666930cf2a3985fa17be32c627eb273 /LibGit2Sharp/Reference.cs | |
parent | 66bc35fa37c0e72a1bf71129dab8d0b299b43b41 (diff) |
Change API to query the history of commits
Diffstat (limited to 'LibGit2Sharp/Reference.cs')
-rw-r--r-- | LibGit2Sharp/Reference.cs | 9 |
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 |