Package org.eclipse.jgit.pgm
Class Merge
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.Merge
-
class Merge extends TextBuiltin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
-
Field Summary
Fields Modifier and Type Field Description private MergeCommand.FastForwardModeffprivate MergeStrategymergeStrategyprivate java.lang.Stringmessageprivate booleannoCommitprivate java.lang.Stringrefprivate booleansquashprivate java.lang.StringstrategyName
-
Constructor Summary
Constructors Constructor Description Merge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidff(boolean ignored)(package private) voidffonly(boolean ignored)private RefgetOldHead()private booleanisMergedInto(Ref oldHead, AnyObjectId src)(package private) voidnoff(boolean ignored)protected voidrun()Perform the actions of this command.-
Methods inherited from class org.eclipse.jgit.pgm.TextBuiltin
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
-
-
-
-
Field Detail
-
strategyName
private java.lang.String strategyName
-
squash
private boolean squash
-
noCommit
private boolean noCommit
-
mergeStrategy
private MergeStrategy mergeStrategy
-
ref
private java.lang.String ref
-
ff
private MergeCommand.FastForwardMode ff
-
message
private java.lang.String message
-
-
Method Detail
-
ff
void ff(boolean ignored)
-
noff
void noff(boolean ignored)
-
ffonly
void ffonly(boolean ignored)
-
run
protected void run()
Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[]).- Specified by:
runin classTextBuiltin
-
getOldHead
private Ref getOldHead() throws java.io.IOException
- Throws:
java.io.IOException
-
isMergedInto
private boolean isMergedInto(Ref oldHead, AnyObjectId src) throws java.io.IOException
- Throws:
java.io.IOException
-
-