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>2012-04-17 21:01:32 +0400
committernulltoken <emeric.fermas@gmail.com>2012-04-28 05:32:16 +0400
commitbd127243515540350875c8fa1d359db82d7411cf (patch)
treeaeb70a16000da92e5ce28e4a80b7f3c9cff4a08d
parentbabf77dda5cf70d3d80fd99961e53e085d9a767e (diff)
Add ObjectId.Zero static property
-rw-r--r--LibGit2Sharp/ObjectId.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/LibGit2Sharp/ObjectId.cs b/LibGit2Sharp/ObjectId.cs
index 85631b3b..929f9877 100644
--- a/LibGit2Sharp/ObjectId.cs
+++ b/LibGit2Sharp/ObjectId.cs
@@ -32,6 +32,11 @@ namespace LibGit2Sharp
new LambdaEqualityHelper<ObjectId>(new Func<ObjectId, object>[] { x => x.Sha });
/// <summary>
+ /// Zero ObjectId
+ /// </summary>
+ public static ObjectId Zero = new ObjectId(new string('0', HexSize));
+
+ /// <summary>
/// Initializes a new instance of the <see cref = "ObjectId" /> class.
/// </summary>
/// <param name = "oid">The oid.</param>