Class: Amp::Core::Repositories::Git::Index::IndexVersion1

Inherits:
AbstractIndex
  • Object
show all
Defined in:
lib/amp-git/repo_format/index.rb

Overview

Older version of the index. Not used anymore by git.

Instance Method Summary collapse

Methods inherited from AbstractIndex

#[], #inspect, #read_entries, #size

Constructor Details

#initialize(fp) ⇒ IndexVersion1

Returns a new instance of IndexVersion1.



151
152
153
154
155
# File 'lib/amp-git/repo_format/index.rb', line 151

def initialize(fp)
  super
  @checksum = fp.read(20)
  read_entries(fp)
end