public GetTreeFiles ( string treeGuid, bool full ) : IList |
||
treeGuid | string | |
full | bool | |
return | IList |
public IList<GitItemStatus> GetTreeFiles(string treeGuid, bool full)
{
var tree = GetTree(treeGuid, full);
var list = tree
.Select(file => new GitItemStatus
{
IsNew = true,
IsChanged = false,
IsDeleted = false,
IsStaged = false,
Name = file.Name,
TreeGuid = file.Guid
}).ToList();
// Doesn't work with removed submodules
var submodulesList = GetSubmodulesLocalPaths();
foreach (var item in list)
{
if (submodulesList.Contains(item.Name))
item.IsSubmodule = true;
}
return list;
}