read method
The object with id, or null when this store does not have it.
Implementation
@override
Future<GitObject?> read(GitObjectId id) async {
final loose = File(_loosePath(id));
if (loose.existsSync()) {
return GitObject.unframe(gitInflate(loose.readAsBytesSync()));
}
for (final pack in _loadedPacks) {
final offset = pack.index.offsetOf(id);
if (offset != null) return pack.read(offset, read);
}
return null;
}