diff options
Diffstat (limited to 'LibGit2Sharp')
-rw-r--r-- | LibGit2Sharp/Index.cs | 2 | ||||
-rw-r--r-- | LibGit2Sharp/TreeEntry.cs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/LibGit2Sharp/Index.cs b/LibGit2Sharp/Index.cs index e380031b..38c3e943 100644 --- a/LibGit2Sharp/Index.cs +++ b/LibGit2Sharp/Index.cs @@ -418,7 +418,7 @@ namespace LibGit2Sharp var indexEntry = new GitIndexEntry { Mode = (uint)treeEntry.Attributes, - oid = treeEntry.Target.Id.Oid, + oid = treeEntry.TargetId.Oid, Path = utf8Marshaler.MarshalManagedToNative(relativePath), }; diff --git a/LibGit2Sharp/TreeEntry.cs b/LibGit2Sharp/TreeEntry.cs index 441674de..4957cf63 100644 --- a/LibGit2Sharp/TreeEntry.cs +++ b/LibGit2Sharp/TreeEntry.cs @@ -57,6 +57,11 @@ namespace LibGit2Sharp get { return target.Value; } } + internal ObjectId TargetId + { + get { return targetOid; } + } + /// <summary> /// Gets the <see cref = "GitObjectType" /> of the <see cref = "Target" /> being pointed at. /// </summary> |