[gitg] Show the checked out branch
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Show the checked out branch
- Date: Mon, 11 Mar 2013 15:47:56 +0000 (UTC)
commit e4741b1512b7c7e54f3a78a3b39905ae66998eb1
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Mar 11 16:47:08 2013 +0100
Show the checked out branch
plugins/history/gitg-history-navigation.vala | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/plugins/history/gitg-history-navigation.vala b/plugins/history/gitg-history-navigation.vala
index 75ea914..f4bf191 100644
--- a/plugins/history/gitg-history-navigation.vala
+++ b/plugins/history/gitg-history-navigation.vala
@@ -107,12 +107,7 @@ namespace GitgHistory
try
{
- head = repo.lookup_reference("HEAD");
-
- if (head.get_reference_type() != Ggit.RefType.SYMBOLIC)
- {
- head = null;
- }
+ head = repo.get_head();
} catch {}
if (CommandLine.all)
@@ -133,7 +128,7 @@ namespace GitgHistory
string? icon = null;
bool isdef = false;
- if (head != null && item.get_name() == head.get_name())
+ if (head != null && item.get_target().equal(head.get_target()))
{
icon = "object-select-symbolic";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]