currentBranch method

Future<String?> currentBranch()

Implementation

Future<String?> currentBranch() async {
  var _head = await head();
  if (_head == null || _head.isHash) {
    return null;
  }

  return _head.target!.branchName();
}