diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-06-27 18:28:02 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-06-28 13:15:47 +0400 |
commit | 5b32d273ca2220d49a98fa3b6ad02d35f86569c7 (patch) | |
tree | a8a98c3bd4420f744d01d26b3047f9ab52d2cdfb /LibGit2Sharp/ObjectDatabase.cs | |
parent | 1b418ae77a0e22c745c825674bb369e664d0aeec (diff) |
Simplify Proxy.git_commit_create() implementation
Diffstat (limited to 'LibGit2Sharp/ObjectDatabase.cs')
-rw-r--r-- | LibGit2Sharp/ObjectDatabase.cs | 2 |
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); |