headOf method
The current revision of the container, or null when it does not exist.
Implementation
@override
Future<String?> headOf(String locator) async {
headOfCalls++;
_guardRequest(locator);
// Not `staleHead?.sha ?? remote.headOf(...)`: that collapses
// `TomStaleHead(null)` back to the truth, which is the one case the
// wrapper exists for.
final stale = staleHead;
return stale != null ? stale.sha : remote.headOf(locator);
}