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 boolean
private DiffFormatter
private DiffTools
private BooleanTriState
private AbstractTreeIterator
private AbstractTreeIterator
private TreeFilter
private BooleanTriState
private boolean
private String
private BooleanTriState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
getFiles()
protected void
init
(Repository repository, String gitDir) Initialize the command to work with a repository.private boolean
isLaunchCompare
(int fileIndex, int fileCount, String fileName, String toolNamePrompt) (package private) void
noGui
(boolean on) (package private) void
noPrompt
(boolean on) (package private) void
noTrustExitCode
(boolean on) protected void
run()
Perform the actions of this command.(package private) void
setGui
(boolean on) (package private) void
setPrompt
(boolean on) (package private) void
setTrustExitCode
(boolean on) private void
Methods 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:TextBuiltin
Initialize the command to work with a repository.- Overrides:
init
in classTextBuiltin
- Parameters:
repository
- the opened repository that the command should work on.gitDir
- value of the--git-dir
command line option, ifrepository
is null.
-
run
protected void run()Description copied from class:TextBuiltin
Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[])
.- Specified by:
run
in 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
-