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>2013-06-27 18:28:02 +0400
committernulltoken <emeric.fermas@gmail.com>2013-06-28 13:15:47 +0400
commit5b32d273ca2220d49a98fa3b6ad02d35f86569c7 (patch)
treea8a98c3bd4420f744d01d26b3047f9ab52d2cdfb /LibGit2Sharp/ObjectDatabase.cs
parent1b418ae77a0e22c745c825674bb369e664d0aeec (diff)
Simplify Proxy.git_commit_create() implementation
Diffstat (limited to 'LibGit2Sharp/ObjectDatabase.cs')
-rw-r--r--LibGit2Sharp/ObjectDatabase.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGit2Sharp/ObjectDatabase.cs b/LibGit2Sharp/ObjectDatabase.cs
index 5e00ea0c..6620525f 100644
--- a/LibGit2Sharp/ObjectDatabase.cs
+++ b/LibGit2Sharp/ObjectDatabase.cs
@@ -190,7 +190,7 @@ namespace LibGit2Sharp
Ensure.ArgumentNotNull(parents, "parents");
string prettifiedMessage = Proxy.git_message_prettify(message);
- IEnumerable<ObjectId> parentIds = parents.Select(p => p.Id);
+ GitOid[] parentIds = parents.Select(p => p.Id.Oid).ToArray();
ObjectId commitId = Proxy.git_commit_create(repo.Handle, referenceName, author, committer, prettifiedMessage, tree, parentIds);