X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=GitBranch.vala;h=6a2dfa1357ea5b4486228f44eed72d40a0d485ac;hp=c08721be57d61f4f40d04258b30c13585676d8f0;hb=7df3b2bb9e1fa811992604764cb3484b7aa1cbb9;hpb=1c3d87de49e514421b3a08bfc3d6d4a822517f98 diff --git a/GitBranch.vala b/GitBranch.vala index c08721be..6a2dfa13 100644 --- a/GitBranch.vala +++ b/GitBranch.vala @@ -59,7 +59,11 @@ public class GitBranch : Object this.repo = repo; } - + public Ggit.Tree getTree() + { + var br = this.repo.repo.lookup_branch(this.name,Ggit.BranchType.LOCAL); + return this.repo.repo.lookup_commit(br.get_target()).get_tree(); + } public static void loadBranches(GitRepo repo)