deleteBranch method

Future<GitHash?> deleteBranch(
  1. String branchName
)

Implementation

Future<GitHash?> deleteBranch(String branchName) async {
  var refName = ReferenceName.branch(branchName);
  var ref = await refStorage.reference(refName);
  if (ref == null) {
    return null;
  }

  await refStorage.deleteReference(refName);
  return ref.hash;
}