Method: Git::Lib#list_files

Defined in:
lib/git/lib.rb

#list_files(ref_dir)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



753
754
755
756
# File 'lib/git/lib.rb', line 753

def list_files(ref_dir)
  dir = File.join(@git_dir, 'refs', ref_dir)
  Dir.glob('**/*', base: dir).select { |f| File.file?(File.join(dir, f)) }
end