projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fadad23
)
GitBranch.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 20 Mar 2019 06:40:34 +0000
(14:40 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 20 Mar 2019 06:40:34 +0000
(14:40 +0800)
GitBranch.vala
patch
|
blob
|
history
diff --git
a/GitBranch.vala
b/GitBranch.vala
index
b2a8f70
..
3d485ef
100644
(file)
--- a/
GitBranch.vala
+++ b/
GitBranch.vala
@@
-54,6
+54,20
@@
public class GitBranch : Object
{
this.repo = repo;
}
+
+ public void loadRemoteHeads(bool force = false)
+ {
+
+ if (!force && this.remote_heads != null) {
+ return;
+ }
+ var r = this.repo.lookup_remote("origin");
+ r.connect(Ggit.Direction.FETCH, this.callbacks, null, null);
+ this.remote_heads = r.list();
+
+ }
+
+
public static void loadBranches(GitRepo repo)
{