[gitg] Fix also api breaks in history plugin
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Fix also api breaks in history plugin
- Date: Wed, 13 Feb 2013 11:47:54 +0000 (UTC)
commit c0f2051a8cdc0f46416e2815f1f1e8f6b4589512
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Feb 13 12:47:41 2013 +0100
Fix also api breaks in history plugin
plugins/history/gitg-history-navigation.vala | 2 +-
plugins/history/gitg-history.vala | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/history/gitg-history-navigation.vala b/plugins/history/gitg-history-navigation.vala
index 8704c16..ad0f16c 100644
--- a/plugins/history/gitg-history-navigation.vala
+++ b/plugins/history/gitg-history-navigation.vala
@@ -133,7 +133,7 @@ namespace GitgHistory
string? icon = null;
bool isdef = false;
- if (head != null && item.get_name() == head.get_target())
+ if (head != null && item.get_name() == head.get_name())
{
icon = "object-select-symbolic";
diff --git a/plugins/history/gitg-history.vala b/plugins/history/gitg-history.vala
index 6a6b6bf..96457bf 100644
--- a/plugins/history/gitg-history.vala
+++ b/plugins/history/gitg-history.vala
@@ -200,7 +200,7 @@ namespace GitgHistory
if (head != null)
{
- id = head.get_id();
+ id = head.get_target();
if (head.parsed_name.rtype == Gitg.RefType.TAG)
{
@@ -234,12 +234,12 @@ namespace GitgHistory
try
{
- var t = application.repository.lookup(resolved.get_id(), typeof(Ggit.Tag)) as Ggit.Tag;
+ var t = application.repository.lookup(resolved.get_target(), typeof(Ggit.Tag)) as Ggit.Tag;
included += t.get_target_id();
}
catch
{
- included += resolved.get_id();
+ included += resolved.get_target();
}
} catch {}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]