Interface DiffTarget
- All Known Implementing Classes:
DiffTarget.OfCommit,DiffTarget.Staged,DiffTarget.Unstaged,DiffTarget.WorkingTree
public sealed interface DiffTarget
permits DiffTarget.WorkingTree, DiffTarget.Unstaged, DiffTarget.Staged, DiffTarget.OfCommit
What to compare when asking for the diff of a file.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordWhat a commit changed compared with its first parent (for a root commit: everything is added).static final recordThe staged changes:HEADagainst the index (what the next commit will contain).static final recordThe unstaged changes: the index against the working tree.static final recordThe uncommitted changes:HEADagainst the working tree (staged and unstaged together).