class
Agate::Indexer
- Agate::Indexer
- Reference
- Object
Overview
A packfile indexer that builds an index from raw pack data.
indexer = Indexer.new("/path/to/objects/pack")
indexer.append(data)
indexer.commit
puts indexer.name # => "pack-abc123..."
Defined in:
agate/indexer.crConstructors
-
.new(path : String, mode : UInt32 = 0) : Indexer
Creates a new indexer that will write to the given directory.
Instance Method Summary
-
#append(data : Bytes) : IndexerProgress
Appends data to the indexer.
-
#commit : IndexerProgress
Finalizes the pack and writes the index file.
-
#name : String | Nil
Returns the unique name for the resulting packfile.
Constructor Detail
Creates a new indexer that will write to the given directory.