internal TreeItem(Repository aRepository, string aId, byte[] aBytes)
{
iRepository = aRepository;
iId = aId;
string value = ASCIIEncoding.ASCII.GetString(aBytes);
string[] parts = value.Split(new char[] { ' ' }, 2);
if (parts.Length != 2)
{
throw (new GitException("Tree item corrupt"));
}
iMode = parts[0];
iName = parts[1];
}