remoteBranch method

Future<Reference?> remoteBranch(
  1. String remoteName,
  2. String branchName
)

Implementation

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

  var remoteRef = ReferenceName.remote(remoteName, branchName);
  return refStorage.reference(remoteRef);
}