Class Branch
java.lang.Object
org.eclipse.jgit.pgm.TextBuiltin
org.eclipse.jgit.pgm.Branch
-
Nested Class Summary
Nested classes/interfaces inherited from class TextBuiltin
TextBuiltin.TerminatedByHelpException -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidaddRefs(Collection<Ref> refs, String prefix) voidcreateForce(List<String> branchAndStartPoint) Forcefully create a list of branchesvoidDelete branchesprivate voidvoiddeleteForce(List<String> names) Forcefully delete branchesprivate voidlist()voidmoveRename(List<String> currentAndNew) Move or rename a branchprivate voidprintHead(ObjectReader reader, String ref, boolean isCurrent, Ref refObj) protected voidrun()Perform the actions of this command.Methods inherited from class TextBuiltin
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
-
Field Details
-
otherBranch
-
createForce
private boolean createForce -
rename
private boolean rename -
remote
private boolean remote -
all
private boolean all -
containsCommitish
-
delete
-
deleteForce
-
verbose
private boolean verbose -
branch
-
printRefs
-
rw
Only set for verbose branch listing at-the-moment -
maxNameLength
private int maxNameLength
-
-
Constructor Details
-
Branch
Branch()
-
-
Method Details
-
delete
-
deleteForce
-
createForce
-
moveRename
-
run
protected void run()Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[]).- Specified by:
runin classTextBuiltin
-
list
- Throws:
IOExceptionGitAPIException
-
addRefs
-
addRef
-
printHead
private void printHead(ObjectReader reader, String ref, boolean isCurrent, Ref refObj) throws IOException - Throws:
IOException
-
delete
- Throws:
IOException
-