[gitg/wip/techlivezh/show-detached-head] Show detached head in the commit list
- From: Techlive Zheng <techlivezh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/techlivezh/show-detached-head] Show detached head in the commit list
- Date: Wed, 25 Dec 2013 04:36:17 +0000 (UTC)
commit ecddfaaab3bf9b63cbb08d60a1ed48855e645753
Author: Techlive Zheng <techlivezheng gmail com>
Date: Tue Dec 10 18:18:00 2013 +0800
Show detached head in the commit list
https://bugzilla.gnome.org/show_bug.cgi?id=720729
gitg/history/gitg-history-navigation.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gitg/history/gitg-history-navigation.vala b/gitg/history/gitg-history-navigation.vala
index 621c99c..436966c 100644
--- a/gitg/history/gitg-history-navigation.vala
+++ b/gitg/history/gitg-history-navigation.vala
@@ -185,6 +185,11 @@ namespace GitgHistory
return 0;
});
+
+ if (repo.is_head_detached())
+ {
+ d_all.prepend(repo.get_head());
+ }
} catch {}
d_all.reverse();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]