Package org.eclipse.jgit.pgm
Class DiffTool
java.lang.Object
org.eclipse.jgit.pgm.TextBuiltin
org.eclipse.jgit.pgm.DiffTool
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate DiffFormatterprivate DiffToolsprivate BooleanTriStateprivate AbstractTreeIteratorprivate AbstractTreeIteratorprivate TreeFilterprivate BooleanTriStateprivate booleanprivate Stringprivate BooleanTriState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidgetFiles()protected voidinit(Repository repository, String gitDir) Initialize the command to work with a repository.private booleanisLaunchCompare(int fileIndex, int fileCount, String fileName, String toolNamePrompt) (package private) voidnoGui(boolean on) (package private) voidnoPrompt(boolean on) (package private) voidnoTrustExitCode(boolean on) protected voidrun()Perform the actions of this command.(package private) voidsetGui(boolean on) (package private) voidsetPrompt(boolean on) (package private) voidsetTrustExitCode(boolean on) private voidMethods inherited from class org.eclipse.jgit.pgm.TextBuiltin
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
-
Field Details
-
diffFmt
-
diffTools
-
oldTree
-
newTree
-
toolName
-
cached
private boolean cached -
prompt
-
toolHelp
private boolean toolHelp -
gui
-
trustExitCode
-
pathFilter
-
-
Constructor Details
-
DiffTool
DiffTool()
-
-
Method Details
-
setPrompt
void setPrompt(boolean on) -
noPrompt
void noPrompt(boolean on) -
setGui
void setGui(boolean on) -
noGui
void noGui(boolean on) -
setTrustExitCode
void setTrustExitCode(boolean on) -
noTrustExitCode
void noTrustExitCode(boolean on) -
init
Description copied from class:TextBuiltinInitialize the command to work with a repository.- Overrides:
initin classTextBuiltin- Parameters:
repository- the opened repository that the command should work on.gitDir- value of the--git-dircommand line option, ifrepositoryis null.
-
run
protected void run()Description copied from class:TextBuiltinPerform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[]).- Specified by:
runin classTextBuiltin
-
compare
private void compare(List<DiffEntry> files, boolean showPrompt, String toolNamePrompt) throws IOException - Throws:
IOException
-
isLaunchCompare
private boolean isLaunchCompare(int fileIndex, int fileCount, String fileName, String toolNamePrompt) throws IOException - Throws:
IOException
-
showToolHelp
- Throws:
IOException
-
getFiles
private List<DiffEntry> getFiles() throws RevisionSyntaxException, AmbiguousObjectException, IncorrectObjectTypeException, IOException
-