5 GLib.Log.set_handler(null,
6 GLib.LogLevelFlags.LEVEL_DEBUG | GLib.LogLevelFlags.LEVEL_WARNING | GLib.LogLevelFlags.LEVEL_INFO,
18 var a = new GitLive.Repo("/home/alan/gitlive/web.Texon");
23 public class Repo : Object
29 Git.Repository.open(this.repo , path);
34 bool push(git_repository *repository)
37 git_repository* repository;
39 git_remote* remote = NULL;
40 git_remote_lookup( &remote, repository, "origin" );
43 git_remote_connect( remote, GIT_DIRECTION_PUSH )
46 git_remote_add_push( remote, "refs/heads/master:refs/heads/master" );
49 git_push_options options;
50 git_push_init_options( &options, GIT_PUSH_OPTIONS_VERSION );
53 git_remote_upload( remote, NULL, &options );
55 git_remote_free( remote );