remoteBranches method

Future<List<Reference>> remoteBranches(
  1. String remoteName
)

Implementation

Future<List<Reference>> remoteBranches(String remoteName) async {
  if (config.remote(remoteName) == null) {
    throw Exception('remote $remoteName does not exist');
  }

  var remoteRefsPrefix = '$refRemotePrefix$remoteName/';
  return refStorage.listReferences(remoteRefsPrefix);
}