public Tree MapTree(ObjectId id)
{
ObjectLoader or = OpenObject(id);
if (or == null)
{
return null;
}
byte[] raw = or.Bytes;
switch (((ObjectType)or.Type))
{
case ObjectType.Tree:
return new Tree(this, id, raw);
case ObjectType.Commit:
return MapTree(ObjectId.FromString(raw, 5));
}
throw new IncorrectObjectTypeException(id, ObjectType.Tree);
}
Repository::MapTree ( string revstr ) : Tree |
internal WorkDirCheckout(Repository repo, DirectoryInfo workDir, GitIndex oldIndex, GitIndex newIndex) : this() { _repo = repo; _root = workDir; _index = oldIndex; _merge = repo.MapTree(newIndex.writeTree()); }