projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7641fdf
)
Git.vala
author
Alan Knowles
<alan@roojs.com>
Mon, 11 Mar 2019 07:39:07 +0000
(15:39 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 11 Mar 2019 07:39:07 +0000
(15:39 +0800)
Git.vala
patch
|
blob
|
history
diff --git
a/Git.vala
b/Git.vala
index
7e7ce98
..
6ce0450
100644
(file)
--- a/
Git.vala
+++ b/
Git.vala
@@
-25,7
+25,9
@@
void main()
GLib.DateTime.now_utc().format("%Y-%m-%d %H:%M:%S")
);
// mmh.. no git add/commit in library...
- Process.spawn_command_line_sync ("ls");
+ string[] spawn_args = {"git", "commit", "-m", "test", "-a"};
+ string[] spawn_env = Environ.get ();
+ Process.spawn_sync ("/home/alan/git/test2", spawn_args, spawn_env, SpawnFlags.SEARCH_PATH, null);
a.pushAll();