The Wayback Machine - https://web.archive.org/web/20200918055612/https://github.com/github/libgit2sharp/wiki/Git-ls-tree
Skip to content

Git ls tree

KindDragon edited this page Mar 5, 2013 · 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);
}
You can’t perform that action at this time.