/** * Set whether to forcefully delete branches * * @param force * <code>true</code> corresponds to the -D option, * <code>false</code> to the -d option (default) <br> * if <code>false</code> a check will be performed whether the * branch to be deleted is already merged into the current branch * and deletion will be refused in this case * @return this instance */ public DeleteBranchCommand setForce(boolean force) { checkCallable(); this.force = force; return this; } }
/** * Set the names of the branches to delete * * @param branchnames * the names of the branches to delete; if not set, this will do * nothing; invalid branch names will simply be ignored * @return this instance */ public DeleteBranchCommand setBranchNames(String... branchnames) { checkCallable(); this.branchNames.clear(); for (String branch : branchnames) this.branchNames.add(branch); return this; }
public List<String> call() throws GitAPIException, NotMergedException, CannotDeleteCurrentBranchException { checkCallable(); List<String> result = new ArrayList<>(); if (branchNames.isEmpty())
/** * @param force * <code>true</code> corresponds to the -D option, * <code>false</code> to the -d option (default) <br> * if <code>false</code> a check will be performed whether the * branch to be deleted is already merged into the current branch * and deletion will be refused in this case * @return this instance */ public DeleteBranchCommand setForce(boolean force) { checkCallable(); this.force = force; return this; } }
/** * Set whether to forcefully delete branches * * @param force * <code>true</code> corresponds to the -D option, * <code>false</code> to the -d option (default) <br> * if <code>false</code> a check will be performed whether the * branch to be deleted is already merged into the current branch * and deletion will be refused in this case * @return this instance */ public DeleteBranchCommand setForce(boolean force) { checkCallable(); this.force = force; return this; } }
/** * @param branchnames * the names of the branches to delete; if not set, this will do * nothing; invalid branch names will simply be ignored * @return this instance */ public DeleteBranchCommand setBranchNames(String... branchnames) { checkCallable(); this.branchNames.clear(); for (String branch : branchnames) this.branchNames.add(branch); return this; }
/** * Set the names of the branches to delete * * @param branchnames * the names of the branches to delete; if not set, this will do * nothing; invalid branch names will simply be ignored * @return this instance */ public DeleteBranchCommand setBranchNames(String... branchnames) { checkCallable(); this.branchNames.clear(); for (String branch : branchnames) this.branchNames.add(branch); return this; }
checkCallable(); List<String> result = new ArrayList<String>(); if (branchNames.isEmpty())
public List<String> call() throws GitAPIException, NotMergedException, CannotDeleteCurrentBranchException { checkCallable(); List<String> result = new ArrayList<>(); if (branchNames.isEmpty())