Uncommited changes synced
[gitlive] / Git2.vala
index 5f8e42b..cc14629 100644 (file)
--- a/Git2.vala
+++ b/Git2.vala
@@ -26,18 +26,20 @@ namespace  GitLive {
                
                public Repo (string path)
                {
-                       Git.Repository.open(this.repo , path);
+                       Git.Repository.open(out this.repo , path);
                }
                
-               
-               
-
-
-bool push(git_repository *repository) 
- {
-     
-     git_repository* repository;
-     // get the remote.
+               public void push()
+               {
+               string_array remotes;
+               this.repo.get_remote_list(out remotes);
+               
+               foreach(var rem in remotes.strings) {
+                       Git.Remote remote;
+                       this.repo.get_remote(out remote, rem_name);
+               
+               
+        // get the remote.
      git_remote* remote = NULL;
      git_remote_lookup( &remote, repository, "origin" );