projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Uncommited changes synced
[gitlive]
/
GitBranch.vala
diff --git
a/GitBranch.vala
b/GitBranch.vala
index
c08721b
..
6a2dfa1
100644
(file)
--- 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)