Uncommited changes synced
[gitlive] / GitBranch.vala
index c08721b..6a2dfa1 100644 (file)
@@ -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)