projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81638d8
)
GitRepo.vala
author
Alan Knowles
<alan@roojs.com>
Mon, 25 Sep 2017 03:20:59 +0000
(11:20 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 25 Sep 2017 03:20:59 +0000
(11:20 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
6f9ffb4
..
c570d77
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-274,8
+274,8
@@
public class GitRepo : Object
}
}
- public delegate void
Pull
AsyncCallback (string str)
- async public string pull_async(
Pull
AsyncCallback cb) {
+ public delegate void
Git
AsyncCallback (string str)
+ async public string pull_async(
Git
AsyncCallback cb) {
@@
-351,7
+351,7
@@
public class GitRepo : Object
}
}
- public string git_async(string[] args_in ) throws Error, SpawnError
+ public string git_async(
GitAsyncCallback cb,
string[] args_in ) throws Error, SpawnError
{
// convert arguments.
{
// convert arguments.
@@
-385,7
+385,10
@@
public class GitRepo : Object
var cfg = new SpawnConfig(this.git_working_dir , args , env);
var cfg = new SpawnConfig(this.git_working_dir , args , env);
-
+ cfg.async = true;
+ cfg.onFinish((err) {
+ this.
+ });
// may throw error...
var sp = new Spawn(cfg);
// may throw error...
var sp = new Spawn(cfg);