headHash method
Implementation
Future<GitHash?> headHash() async {
var ref = await refStorage.reference(ReferenceName('HEAD'));
if (ref == null) {
return null;
}
ref = await resolveReference(ref);
if (ref == null) {
return null;
}
return ref.hash;
}