Skip to content
vpfau edited this page Oct 24, 2018 · 2 revisions

git-ls-tree

Get tree items

Git

$ git ls-tree commit

LibGit2Sharp

using (var repo = new Repository("path/to/your/repo"))
{
    var tree = Repository.Lookup<Tree>(id);
    foreach(var item in tree)
        Console.WriteLine(item.Name);
}
Clone this wiki locally