Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.diff |
Comparing file contents by computing diffs.
|
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
org.eclipse.jgit.revwalk |
Walking revision graphs (commit history).
|
org.eclipse.jgit.submodule |
Git submodule support.
|
org.eclipse.jgit.treewalk |
Walking and comparing directory/file trees (of commits, file system).
|
org.eclipse.jgit.treewalk.filter |
Filters for use in tree walking.
|
Modifier and Type | Method | Description |
---|---|---|
DiffCommand |
DiffCommand.setPathFilter(TreeFilter pathFilter) |
Modifier and Type | Method | Description |
---|---|---|
TreeFilter |
DiffFormatter.getPathFilter() |
Modifier and Type | Method | Description |
---|---|---|
static List<DiffEntry> |
DiffEntry.scan(TreeWalk walk,
boolean includeTrees,
TreeFilter[] markTreeFilters) |
Convert the TreeWalk into DiffEntry headers, depending on
includeTrees it will add tree objects into result or not. |
void |
DiffFormatter.setPathFilter(TreeFilter filter) |
Set the filter to produce only specific paths.
|
Modifier and Type | Method | Description |
---|---|---|
void |
IndexDiff.setFilter(TreeFilter filter) |
Sets a filter.
|
Modifier and Type | Class | Description |
---|---|---|
class |
FollowFilter |
Updates the internal path filter to follow copy/renames.
|
Modifier and Type | Method | Description |
---|---|---|
TreeFilter |
FollowFilter.clone() |
|
TreeFilter |
RevWalk.getTreeFilter() |
Get the tree filter used to simplify commits by modified paths.
|
Modifier and Type | Method | Description |
---|---|---|
void |
RevWalk.setTreeFilter(TreeFilter newFilter) |
Set the tree filter used to simplify commits by modified paths.
|
Constructor | Description |
---|---|
TreeRevFilter(RevWalk walker,
TreeFilter t) |
Create a
RevFilter from a TreeFilter . |
Modifier and Type | Method | Description |
---|---|---|
SubmoduleWalk |
SubmoduleWalk.setFilter(TreeFilter filter) |
Set tree filter
|
Modifier and Type | Method | Description |
---|---|---|
TreeFilter |
TreeWalk.getFilter() |
Get the currently configured filter.
|
Modifier and Type | Method | Description |
---|---|---|
void |
TreeWalk.setFilter(TreeFilter newFilter) |
Set the tree entry filter for this walker.
|
Modifier and Type | Class | Description |
---|---|---|
class |
AndTreeFilter |
Includes a tree entry only if all subfilters include the same tree entry.
|
class |
IndexDiffFilter |
A performance optimized variant of
ANY_DIFF which should
be used when among the walked trees there is a DirCacheIterator and a
WorkingTreeIterator . |
class |
InterIndexDiffFilter |
A filter for extracting changes between two versions of the dircache.
|
class |
NotIgnoredFilter |
Skip
WorkingTreeIterator entries that appear in gitignore files. |
class |
NotTreeFilter |
Includes an entry only if the subfilter does not include the entry.
|
class |
OrTreeFilter |
Includes a tree entry if any subfilters include the same tree entry.
|
class |
PathFilter |
Includes tree entries only if they match the configured path.
|
class |
PathSuffixFilter |
Includes tree entries only if they end with the configured path (suffix
match).
|
class |
SkipWorkTreeFilter |
To be used in combination with a DirCacheIterator: includes only tree entries
for which 'skipWorkTree' flag is not set.
|
Modifier and Type | Field | Description |
---|---|---|
static TreeFilter |
TreeFilter.ALL |
Selects all tree entries.
|
static TreeFilter |
TreeFilter.ANY_DIFF |
Selects only tree entries which differ between at least 2 trees.
|
static TreeFilter |
InterIndexDiffFilter.INSTANCE |
Predefined InterIndexDiffFilter for finding changes between two dircaches
|
Modifier and Type | Method | Description |
---|---|---|
TreeFilter |
IndexDiffFilter.clone() |
|
TreeFilter |
InterIndexDiffFilter.clone() |
|
TreeFilter |
NotIgnoredFilter.clone() |
|
TreeFilter |
NotTreeFilter.clone() |
|
TreeFilter |
PathSuffixFilter.clone() |
|
TreeFilter |
SkipWorkTreeFilter.clone() |
|
abstract TreeFilter |
TreeFilter.clone() |
Clone this tree filter, including its parameters.
|
static TreeFilter |
AndTreeFilter.create(Collection<TreeFilter> list) |
Create a filter around many filters, all of which must match.
|
static TreeFilter |
AndTreeFilter.create(TreeFilter[] list) |
Create a filter around many filters, all of which must match.
|
static TreeFilter |
AndTreeFilter.create(TreeFilter a,
TreeFilter b) |
Create a filter with two filters, both of which must match.
|
static TreeFilter |
NotTreeFilter.create(TreeFilter a) |
Create a filter that negates the result of another filter.
|
static TreeFilter |
OrTreeFilter.create(Collection<TreeFilter> list) |
Create a filter around many filters, one of which must match.
|
static TreeFilter |
OrTreeFilter.create(TreeFilter[] list) |
Create a filter around many filters, one of which must match.
|
static TreeFilter |
OrTreeFilter.create(TreeFilter a,
TreeFilter b) |
Create a filter with two filters, one of which must match.
|
static TreeFilter |
PathFilterGroup.create(Collection<PathFilter> paths) |
Create a collection of path filters.
|
static TreeFilter |
PathFilterGroup.createFromStrings(String... paths) |
Create a collection of path filters from Java strings.
|
static TreeFilter |
PathFilterGroup.createFromStrings(Collection<String> paths) |
Create a collection of path filters from Java strings.
|
TreeFilter |
NotTreeFilter.negate() |
|
TreeFilter |
TreeFilter.negate() |
Create a new filter that does the opposite of this filter.
|
Modifier and Type | Method | Description |
---|---|---|
static TreeFilter |
AndTreeFilter.create(TreeFilter[] list) |
Create a filter around many filters, all of which must match.
|
static TreeFilter |
AndTreeFilter.create(TreeFilter a,
TreeFilter b) |
Create a filter with two filters, both of which must match.
|
static TreeFilter |
NotTreeFilter.create(TreeFilter a) |
Create a filter that negates the result of another filter.
|
static TreeFilter |
OrTreeFilter.create(TreeFilter[] list) |
Create a filter around many filters, one of which must match.
|
static TreeFilter |
OrTreeFilter.create(TreeFilter a,
TreeFilter b) |
Create a filter with two filters, one of which must match.
|
Modifier and Type | Method | Description |
---|---|---|
static TreeFilter |
AndTreeFilter.create(Collection<TreeFilter> list) |
Create a filter around many filters, all of which must match.
|
static TreeFilter |
OrTreeFilter.create(Collection<TreeFilter> list) |
Create a filter around many filters, one of which must match.
|
Constructor | Description |
---|---|
TreeFilterMarker(TreeFilter[] markTreeFilters) |
Construct a TreeFilterMarker.
|
Copyright © 2018. All rights reserved.