X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Git.vala;h=63c03c7e722fb7056c41c7034c56a5ba1f2c1347;hb=ee8e2cc9e8ebe8bc0b0455e27862ebdcb68794f4;hp=66b4209781c92e3c0938a437fc0e8cff3de03fa3;hpb=c8bc028311655fb453141768779b772a063f4b2c;p=gitlive diff --git a/Git.vala b/Git.vala index 66b42097..63c03c7e 100644 --- a/Git.vala +++ b/Git.vala @@ -16,9 +16,12 @@ void main() } ); - Ggit.init(); - + Ggit.init(); + var a = new GitLive.Repo("/home/alan/gitlive/web.Texon"); + a.fetchAll(); + return; + /* GLib.Timeout.add (1, () => { GLib.debug("Meanwhile"); return true; @@ -105,7 +108,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 +334,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 +343,7 @@ namespace GitLive { Idle.add((owned) callback); return true;; }; - new Thread("thread-example", run); + new Thread("loadRemoteHeads-" , run); yield;