X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=Git2.vala;h=cc146292e3faa6bc49aa3ce80ef6f2782e7d27aa;hp=d9dd358403cbdd00ac44678f5627a7961cffa8e6;hb=refs%2Fheads%2Fwip_alan_T5782_messing_around_with_libgit2glib;hpb=e7b4c624edb2e6a58f542bc201332ed9f002c4dc diff --git a/Git2.vala b/Git2.vala index d9dd3584..cc146292 100644 --- 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" );