[gitg] Show detached head in the commit list



commit c1757df0378199ab591497f335c7d060945e634b
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]