Beispiel #1
0
        private GitObject RetrieveTreeEntryTarget()
        {
            if (!Type.HasAny(new[] { GitObjectType.Tree, GitObjectType.Blob }))
            {
                throw new InvalidOperationException(string.Format("TreeEntry target of type '{0}' are not supported.", Type));
            }

            GitObject treeEntryTarget = repo.LookupTreeEntryTarget(targetOid, Path);

            return(treeEntryTarget);
        }