projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cba5c48
)
GitBranch.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 20 Mar 2019 07:07:23 +0000
(15:07 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 20 Mar 2019 07:07:23 +0000
(15:07 +0800)
GitBranch.vala
patch
|
blob
|
history
diff --git
a/GitBranch.vala
b/GitBranch.vala
index
9efe374
..
8a12f2c
100644
(file)
--- a/
GitBranch.vala
+++ b/
GitBranch.vala
@@
-69,7
+69,17
@@
public class GitBranch : Object
//var local = new Gee.HashMap<string,GitBranch>();
//var remotes = new Gee.HashMap<string,GitBranch>();
-
+
+
+ if (!force && this.remote_heads != null) {
+ return;
+ }
+ var r = repo.repo.lookup_remote("origin");
+ var cb = new GitCallbacks(repo);
+ r.connect(Ggit.Direction.FETCH, cb, null, null);
+ this.remote_heads = r.list();
+
+
repo.loadRemoteHeads();