Package org.eclipse.jgit.pgm
Class Diff
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.Diff
-
class Diff 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 booleancachedprivate java.lang.BooleandetectRenamesprivate DiffFormatterdiffFmtprivate AbstractTreeIteratornewTreeprivate AbstractTreeIteratoroldTreeprivate TreeFilterpathFilterprivate java.lang.IntegerrenameLimitprivate booleanshowNameAndStatusOnly(package private) booleanshowPatch
-
Constructor Summary
Constructors Constructor Description Diff()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidabbrev(boolean on)(package private) voidabbrev(int lines)(package private) voiddstPrefix(java.lang.String path)(package private) voidignoreAllSpace(boolean on)(package private) voidignoreLeadingSpace(boolean on)(package private) voidignoreSpaceAtEol(boolean on)(package private) voidignoreSpaceChange(boolean on)protected voidinit(Repository repository, java.lang.String gitDir)Initialize the command to work with a repository.(package private) static voidnameStatus(ThrowingPrintWriter out, java.util.List<DiffEntry> files)(package private) voidnoPrefix(boolean on)(package private) voidnoRenames(boolean on)protected voidrun()Perform the actions of this command.(package private) voidsetAlgorithm(DiffAlgorithm.SupportedAlgorithm s)(package private) voidsourcePrefix(java.lang.String path)(package private) voidunified(int lines)-
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 Detail
-
diffFmt
private DiffFormatter diffFmt
-
oldTree
private AbstractTreeIterator oldTree
-
newTree
private AbstractTreeIterator newTree
-
cached
private boolean cached
-
pathFilter
private TreeFilter pathFilter
-
showPatch
boolean showPatch
-
detectRenames
private java.lang.Boolean detectRenames
-
renameLimit
private java.lang.Integer renameLimit
-
showNameAndStatusOnly
private boolean showNameAndStatusOnly
-
-
Method Detail
-
noRenames
void noRenames(boolean on)
-
setAlgorithm
void setAlgorithm(DiffAlgorithm.SupportedAlgorithm s)
-
ignoreSpaceAtEol
void ignoreSpaceAtEol(boolean on)
-
ignoreLeadingSpace
void ignoreLeadingSpace(boolean on)
-
ignoreSpaceChange
void ignoreSpaceChange(boolean on)
-
ignoreAllSpace
void ignoreAllSpace(boolean on)
-
unified
void unified(int lines)
-
abbrev
void abbrev(int lines)
-
abbrev
void abbrev(boolean on)
-
sourcePrefix
void sourcePrefix(java.lang.String path)
-
dstPrefix
void dstPrefix(java.lang.String path)
-
noPrefix
void noPrefix(boolean on)
-
init
protected void init(Repository repository, java.lang.String gitDir)
Initialize 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()
Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[]).- Specified by:
runin classTextBuiltin
-
nameStatus
static void nameStatus(ThrowingPrintWriter out, java.util.List<DiffEntry> files) throws java.io.IOException
- Throws:
java.io.IOException
-
-