Method: Gitgo::Index#list

Defined in:
lib/gitgo/index.rb

#listObject

Returns the contents of list_file, as an array.



127
128
129
# File 'lib/gitgo/index.rb', line 127

def list
  @list ||= (File.exists?(list_file) ? ShaFile.read(list_file) : [])
end