call() is a list with the (full) names of the deleted
branches.
Note that we don't have a setter corresponding to the -r option; remote
tracking branches are simply deleted just like local branches.
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private boolean | |
| private ProgressMonitor |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public List | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| private void | |
| public ProgressMonitor | Returns: theProgressMonitor for the delete operationRetrieves the progress monitor. |
| public DeleteBranchCommand | Returns: this instancethe names of the branches to delete; if not set, this will do
nothing; invalid branch names will simply be ignored branchnames)Set the names of the branches to delete |
| public DeleteBranchCommand | Returns: thisthe names of the branches to delete; if not set, this will do
nothing; invalid branch names will simply be ignored branchNames)Sets the names of the branches to delete |
| public DeleteBranchCommand | Returns: this instancetrue corresponds to the -D option,
false to the -d option (default) if false 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 caseSet whether to forcefully delete branches |
| public DeleteBranchCommand | Returns: thisSets the progress monitor associated with the delete operation. |
| private void |
| branchNames | back to summary |
|---|---|
| private final Set<String> branchNames | |
| force | back to summary |
|---|---|
| private boolean force | |
| monitor | back to summary |
|---|---|
| private ProgressMonitor monitor | |
| DeleteBranchCommand | back to summary |
|---|---|
| protected DeleteBranchCommand(Repository repo) Constructor for DeleteBranchCommand
| |
| call | back to summary |
|---|---|
| public List Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command
| |
| deleteBranches | back to summary |
|---|---|
| private void deleteBranches(List<String> result, Set<String> shortNames) throws GitAPIException, NotMergedException, CannotDeleteCurrentBranchException | |
| getProgressMonitor | back to summary |
|---|---|
| public ProgressMonitor getProgressMonitor() Retrieves the progress monitor.
| |
| setBranchNames | back to summary |
|---|---|
| public DeleteBranchCommand setBranchNames(String... branchnames) Set the names of the branches to delete
| |
| setBranchNames | back to summary |
|---|---|
| public DeleteBranchCommand setBranchNames(Collection<String> branchNames) Sets the names of the branches to delete
| |
| setForce | back to summary |
|---|---|
| public DeleteBranchCommand setForce(boolean force) Set whether to forcefully delete branches
| |
| setProgressMonitor | back to summary |
|---|---|
| public DeleteBranchCommand setProgressMonitor(ProgressMonitor monitor) Sets the progress monitor associated with the delete operation. By
default, this is set to
| |
| updateConfig | back to summary |
|---|---|
| private void updateConfig(Set<String> shortNames, Exception error) throws GitAPIException | |