Class: Amp::Core::Repositories::Git::Index::IndexVersion1
- Inherits:
-
AbstractIndex
- Object
- AbstractIndex
- Amp::Core::Repositories::Git::Index::IndexVersion1
- Defined in:
- lib/amp-git/repo_format/index.rb
Overview
Older version of the index. Not used anymore by git.
Instance Method Summary collapse
-
#initialize(fp) ⇒ IndexVersion1
constructor
A new instance of IndexVersion1.
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 |