[gitg] Update for new GgitCommitParents API
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Update for new GgitCommitParents API
- Date: Sun, 14 Dec 2014 18:20:42 +0000 (UTC)
commit 2b2b4af9f6c6232dc7a7c3430a93b1cf5a44c1d4
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Dec 14 19:16:41 2014 +0100
Update for new GgitCommitParents API
gitg/commit/gitg-commit.vala | 2 +-
libgitg/gitg-commit.vala | 4 ++--
libgitg/gitg-lanes.vala | 4 ++--
tests/libgitg/test-commit.vala | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gitg/commit/gitg-commit.vala b/gitg/commit/gitg-commit.vala
index cb61b66..a2be9ea 100644
--- a/gitg/commit/gitg-commit.vala
+++ b/gitg/commit/gitg-commit.vala
@@ -598,7 +598,7 @@ namespace GitgCommit
{
var parents = commit.get_parents();
- if (parents.size() != 0)
+ if (parents.size != 0)
{
stage_submodule_at(parents[0] as Gitg.Commit);
}
diff --git a/libgitg/gitg-commit.vala b/libgitg/gitg-commit.vala
index ab3576c..2f16aa2 100644
--- a/libgitg/gitg-commit.vala
+++ b/libgitg/gitg-commit.vala
@@ -122,7 +122,7 @@ public class Commit : Ggit.Commit
var parents = get_parents();
// Create a new diff from the parents to the commit tree
- if (parents.size() == 0)
+ if (parents.size == 0)
{
diff = new Ggit.Diff.tree_to_tree(repo,
null,
@@ -131,7 +131,7 @@ public class Commit : Ggit.Commit
}
else
{
- for (var i = 0; i < parents.size(); ++i)
+ for (var i = 0; i < parents.size; ++i)
{
var parent = parents.get(0);
diff --git a/libgitg/gitg-lanes.vala b/libgitg/gitg-lanes.vala
index 06886dc..f2d99f5 100644
--- a/libgitg/gitg-lanes.vala
+++ b/libgitg/gitg-lanes.vala
@@ -158,7 +158,7 @@ public class Lanes : Object
init_next_layer();
var mylane = d_lanes[pos];
- for (uint i = 0; i < parents.size(); ++i)
+ for (uint i = 0; i < parents.size; ++i)
{
int lnpos;
var poid = parents.get_id(i);
@@ -439,7 +439,7 @@ public class Lanes : Object
var parents = commit.get_parents();
- for (uint i = 0; i < parents.size(); ++i)
+ for (uint i = 0; i < parents.size; ++i)
{
expand_lane_from_oid(parents.get_id(i));
}
diff --git a/tests/libgitg/test-commit.vala b/tests/libgitg/test-commit.vala
index fd0c137..65c0473 100644
--- a/tests/libgitg/test-commit.vala
+++ b/tests/libgitg/test-commit.vala
@@ -252,7 +252,7 @@ class Gitg.Test.Commit : Gitg.Test.Repository
assert_streq(d_repository.get_head().get_target().to_string(),
oid.to_string());
- assert_uinteq(commit.get_parents().size(), 0);
+ assert_uinteq(commit.get_parents().size, 0);
var reflog = d_repository.lookup_reference("HEAD").get_log();
var entry = reflog.get_entry_from_index(0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]