public GitBranchResponse deleteBranch ( File repositoryPath , boolean forceDelete , boolean remote , List < Ref > branchList ) throws IOException , JavaGitException { CheckUtilities . checkNullArgument ( repositoryPath , "repository path" ) ; CheckUtilities . checkNullListArgument ( branchList , "branch list" ) ; CheckUtilities . validateListRefType ( branchList , Ref . RefType . BRANCH , "branch list" ) ; IClient client = ClientManager . getInstance ( ) . getPreferredClient ( ) ; IGitBranch gitBranch = client . getGitBranchInstance ( ) ; return gitBranch . deleteBranches ( repositoryPath , forceDelete , remote , branchList ) ; }
Deletes the specified branches using the - d command line option .