branches method

Future<List<String>> branches()

Implementation

Future<List<String>> branches() async {
  var refs = await refStorage.listReferences(refHeadPrefix);
  var refNames = refs.map((r) => r.name);

  return refNames.map((r) => r.branchName()!).toList();
}