src/utils/branches.js
function remove(repoState, driver, branch) {
    return driver.deleteBranch(branch)
    .then(() => {
        return repoState.updateBranch(branch, null);
    });
}
function remove(repoState, driver, branch) {
    return driver.deleteBranch(branch)
    .then(() => {
        return repoState.updateBranch(branch, null);
    });
}
Remove the given branch from the repository.
@param {RepositoryState} repoState
@param {Driver} driver
@param {Branch} branch to remove
@return {Promise<RepositoryState>}