lib/gitlab_git/tree.rb in gitlab_git-1.0.5 vs lib/gitlab_git/tree.rb in gitlab_git-1.0.6
- old
+ new
@@ -27,9 +27,13 @@
def blobs
entries.select { |t| t.is_a?(Grit::Blob) }
end
+ def submodules
+ entries.select { |t| t.is_a?(Grit::Submodule) }
+ end
+
def is_blob?
raw_tree.is_a?(Grit::Blob)
end
def up_dir?