Class Gitlab::Git::Tree
In: lib/gitlab_git/tree.rb
Parent: Object

Methods

contributing?   dir?   file?   find_id_by_path   name   new   readme?   submodule?   where  

Included Modules

EncodingHelper

Attributes

commit_id  [RW] 
id  [RW] 
mode  [RW] 
name  [RW] 
path  [RW] 
root_id  [RW] 
submodule_url  [RW] 
type  [RW] 

Public Class methods

Recursive search of tree id for path

Ex.

  blog/            # oid: 1a
    app/           # oid: 2a
      models/      # oid: 3a
      views/       # oid: 4a

Tree.find_id_by_path(repo, ‘1a’, ‘app/models’) # => ‘3a‘

Get list of tree objects for repository based on commit sha and path Uses rugged for raw objects

Public Instance methods

[Validate]