From 5413e2728efb9e7fd4c17ef2349b2adf66fa33a3 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 21 Mar 2019 11:53:43 +0800 Subject: [PATCH] Git.vala --- Git.vala | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Git.vala b/Git.vala index 66b42097..503588d8 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-" + this.repo.name, run); yield; -- 2.39.2