headCommit method

Future<GitCommit?> headCommit()

Implementation

Future<GitCommit?> headCommit() async {
  var hash = await headHash();
  if (hash == null) {
    return null;
  }
  var res = await objStorage.readCommit(hash);
  return res.get();
}