projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1fab27
)
GitBranch.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 20 Mar 2019 07:34:43 +0000
(15:34 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 20 Mar 2019 07:34:43 +0000
(15:34 +0800)
GitBranch.vala
patch
|
blob
|
history
diff --git
a/GitBranch.vala
b/GitBranch.vala
index
730e4aa
..
81614b2
100644
(file)
--- a/
GitBranch.vala
+++ b/
GitBranch.vala
@@
-101,6
+101,15
@@
public class GitBranch : Object
br.remoterev = remotes.get(rname);
remotes_used.set(rname,true);
}
+ size_t ahead, behind;
+ repo.get_ahead_behind(
+ br.get_target(),
+ rh.get_oid(),
+ out ahead,
+ out behind
+ );
+ repo.revparse(br.get_name() ).get_id();
+
// age?
// behind or infront..
}
@@
-110,6
+119,8
@@
public class GitBranch : Object
// find unused remotes.. and track them...
+
+
// repo.git( { "fetch", "-a" } ); == done async before...