diff options
author | Tim Clem <timothy.clem@gmail.com> | 2011-03-31 01:56:11 +0400 |
---|---|---|
committer | Tim Clem <timothy.clem@gmail.com> | 2011-03-31 01:56:11 +0400 |
commit | 104efdc0bc8170926ad9ad21ceb33490d721f057 (patch) | |
tree | df8bfcdfc8498d05bf82354a6bcc1df3b64e63a6 /LibGit2Sharp/Signature.cs | |
parent | d5ae5db31fbda406cfd82c9b088c67abdd2ae441 (diff) |
can create, lookup tags
Diffstat (limited to 'LibGit2Sharp/Signature.cs')
-rw-r--r-- | LibGit2Sharp/Signature.cs | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/LibGit2Sharp/Signature.cs b/LibGit2Sharp/Signature.cs index 1d2c33b9..17fa43c2 100644 --- a/LibGit2Sharp/Signature.cs +++ b/LibGit2Sharp/Signature.cs @@ -8,12 +8,12 @@ namespace LibGit2Sharp /// </summary> public class Signature { - private readonly GitSignature sig = new GitSignature(); + private readonly GitSignature handle = new GitSignature(); private DateTimeOffset? when; internal Signature(IntPtr signaturePtr, bool ownedByRepo = true) { - Marshal.PtrToStructure(signaturePtr, sig); + Marshal.PtrToStructure(signaturePtr, handle); if (!ownedByRepo) { NativeMethods.git_signature_free(signaturePtr); @@ -31,12 +31,17 @@ namespace LibGit2Sharp { } + internal GitSignature Handle + { + get { return handle; } + } + /// <summary> /// Gets the name. /// </summary> public string Name { - get { return sig.Name; } + get { return handle.Name; } } /// <summary> @@ -44,7 +49,7 @@ namespace LibGit2Sharp /// </summary> public string Email { - get { return sig.Email; } + get { return handle.Email; } } /// <summary> @@ -56,7 +61,7 @@ namespace LibGit2Sharp { if (when == null) { - when = Epoch.ToDateTimeOffset(sig.When.Time, sig.When.Offset); + when = Epoch.ToDateTimeOffset(handle.When.Time, handle.When.Offset); } return when.Value; } |