headsOf method
Answers every locator in one request, as the GitHub backend does for the documents sharing a repository and branch.
Implementation
@override
Future<Map<String, String?>> headsOf(Iterable<String> locators) async {
headsOfCalls++;
final all = locators.toList();
_guardRequest(all.isEmpty ? '' : all.first);
final stale = staleHead;
return {
for (final locator in all)
locator: stale == null ? remote.headOf(locator) : stale.sha,
};
}