diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-04-17 21:01:32 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-04-28 05:32:16 +0400 |
commit | bd127243515540350875c8fa1d359db82d7411cf (patch) | |
tree | aeb70a16000da92e5ce28e4a80b7f3c9cff4a08d | |
parent | babf77dda5cf70d3d80fd99961e53e085d9a767e (diff) |
Add ObjectId.Zero static property
-rw-r--r-- | LibGit2Sharp/ObjectId.cs | 5 |
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> |