Uncommited changes synced
[gitlive] / Git2.vala
index d9dd358..cc14629 100644 (file)
--- a/Git2.vala
+++ b/Git2.vala
@@ -24,18 +24,22 @@ namespace  GitLive {
        {
                Git.Repository repo;
                
-               (string path)
+               public Repo (string path)
                {
-                       Git.Repository.open(this.repo , path);
-                       this.callbacks = new Callbacks(this);
+                       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" );