[gitg] Do not initialise next layer for hidden commits



commit b12d9106386ae320a6af572b4a8389c0d69b7721
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Mon Nov 9 09:39:45 2015 +0100

    Do not initialise next layer for hidden commits

 libgitg/gitg-lanes.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libgitg/gitg-lanes.vala b/libgitg/gitg-lanes.vala
index 2df2cb4..780fa09 100644
--- a/libgitg/gitg-lanes.vala
+++ b/libgitg/gitg-lanes.vala
@@ -214,7 +214,11 @@ public class Lanes : Object
                var parents = next.get_parents();
                var myoid = next.get_id();
 
-               init_next_layer();
+               if (!hidden)
+               {
+                       init_next_layer();
+               }
+
                var mylane = d_lanes[pos];
 
                for (uint i = 0; i < parents.size; ++i)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]