def tree_map_for(ref, ignore_page_file_dir=false)
      if ignore_page_file_dir && !@page_file_dir.nil?
        @root_access ||= GitAccess.new(path, nil, @repo_is_bare)
        @root_access.tree(ref)
      else
        @access.tree(ref)
      end
    rescue Gollum::Git::NoSuchShaFound
      []
    end
def tree_map_for(ref, ignore_page_file_dir=false)
      if ignore_page_file_dir && !@page_file_dir.nil?
        @root_access ||= GitAccess.new(path, nil, @repo_is_bare)
        @root_access.tree(ref)
      else
        @access.tree(ref)
      end
    rescue Gollum::Git::NoSuchShaFound
      []
    end
Finds a full listing of files and their blob SHA for a given ref.  Each
 listing is cached based on its actual commit SHA.

 ref - A String ref that is either a commit SHA or references one.
 ignore_page_file_dir - Boolean, if true, searches all files within the git repo, regardless of dir/subdir

 Returns an Array of BlobEntry instances.