writeAll method
Stores every object of objects. A store may write them as one unit —
a directory store writes one pack — so prefer this for many objects.
Implementation
Future<void> writeAll(Iterable<GitObject> objects) async {
for (final object in objects) {
await write(object);
}
}