X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Git.vala;h=f8923461545cb315a98bd4158b2007548e595532;hb=fc81ce492666a9ddf264668c0a1e41a4564d1665;hp=66b4209781c92e3c0938a437fc0e8cff3de03fa3;hpb=c8bc028311655fb453141768779b772a063f4b2c;p=gitlive diff --git a/Git.vala b/Git.vala index 66b42097..f8923461 100644 --- a/Git.vala +++ b/Git.vala @@ -17,8 +17,10 @@ void main() ); Ggit.init(); - - + var a = new GitLive.Repo("/home/alan/gitlive/web.coba"); + a.fetchAll(); + return; + /* GLib.Timeout.add (1, () => { GLib.debug("Meanwhile"); return true; @@ -105,7 +107,10 @@ namespace GitLive { var br = r.get() as Ggit.Branch; if (br == null) { continue; - } + } + if (br.is_tag()) { + continue; + } //var head = this.repo.revparse("refs/heads/" + br.get_name() ).get_id(); //var rhead = this.repo.revparse(br.get_upstream().get_name() ).get_id(); @@ -328,7 +333,7 @@ namespace GitLive { } GLib.debug("Remote: name=%s oid=%s local_oid=%s is_local=%s", - br.get_name().substring(11), + br.get_name(), br.get_oid().to_string(), br.get_local_oid().to_string(), br.is_local() ? "Y" : "n" @@ -337,7 +342,7 @@ namespace GitLive { Idle.add((owned) callback); return true;; }; - new Thread("thread-example", run); + new Thread("loadRemoteHeads-" , run); yield;