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.dircache |
Reading and editing the directory cache (index).
|
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
org.eclipse.jgit.patch |
Patch file parser and data structure.
|
org.eclipse.jgit.treewalk |
Walking and comparing directory/file trees (of commits, file system).
|
Modifier and Type | Method | Description |
---|---|---|
void |
ArchiveCommand.Format.putEntry(T out,
String path,
FileMode mode,
ObjectLoader loader) |
Write an entry to an archive.
|
Modifier and Type | Field | Description |
---|---|---|
protected FileMode |
DiffEntry.newMode |
New mode of the file, if described by the patch, else null.
|
protected FileMode |
DiffEntry.oldMode |
Old mode of the file, if described by the patch, else null.
|
Modifier and Type | Method | Description |
---|---|---|
FileMode |
DiffEntry.getMode(DiffEntry.Side side) |
Get the mode associated with this file.
|
FileMode |
DiffEntry.getNewMode() |
|
FileMode |
DiffEntry.getOldMode() |
Modifier and Type | Method | Description |
---|---|---|
FileMode |
DirCacheEntry.getFileMode() |
Obtain the
FileMode for this entry. |
Modifier and Type | Method | Description |
---|---|---|
void |
DirCacheEntry.setFileMode(FileMode mode) |
Set the file mode for this entry.
|
Modifier and Type | Field | Description |
---|---|---|
static FileMode |
FileMode.EXECUTABLE_FILE |
Mode indicating an entry is an executable file.
|
static FileMode |
FileMode.GITLINK |
Mode indicating an entry is a submodule commit in another repository.
|
static FileMode |
FileMode.MISSING |
Mode indicating an entry is missing during parallel walks.
|
static FileMode |
FileMode.REGULAR_FILE |
Mode indicating an entry is a non-executable file.
|
static FileMode |
FileMode.SYMLINK |
Mode indicating an entry is a symbolic link.
|
static FileMode |
FileMode.TREE |
Mode indicating an entry is a tree (aka directory).
|
Modifier and Type | Method | Description |
---|---|---|
static FileMode |
FileMode.fromBits(int bits) |
Convert a set of mode bits into a FileMode enumerated value.
|
FileMode |
IndexDiff.getIndexMode(String path) |
Get the file mode of the given path in the index
|
FileMode |
FileTreeEntry.getMode() |
Deprecated.
|
FileMode |
GitlinkTreeEntry.getMode() |
Deprecated.
|
FileMode |
SymlinkTreeEntry.getMode() |
Deprecated.
|
FileMode |
Tree.getMode() |
Deprecated.
|
abstract FileMode |
TreeEntry.getMode() |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
void |
TreeFormatter.append(byte[] nameBuf,
int namePos,
int nameLen,
FileMode mode,
byte[] idBuf,
int idPos) |
Append any entry to the tree.
|
void |
TreeFormatter.append(byte[] nameBuf,
int namePos,
int nameLen,
FileMode mode,
AnyObjectId id) |
Append any entry to the tree.
|
void |
TreeFormatter.append(byte[] name,
FileMode mode,
AnyObjectId id) |
Append any entry to the tree.
|
void |
TreeFormatter.append(String name,
FileMode mode,
AnyObjectId id) |
Append any entry to the tree.
|
static int |
TreeFormatter.entrySize(FileMode mode,
int nameLen) |
Compute the size of a tree entry record.
|
Set<String> |
IndexDiff.getPathsWithIndexMode(FileMode mode) |
Get the list of paths that IndexDiff has detected to differ and have the
given file mode
|
Modifier and Type | Method | Description |
---|---|---|
FileMode |
CombinedFileHeader.getOldMode() |
|
FileMode |
CombinedFileHeader.getOldMode(int nthParent) |
Get the file mode of the nth ancestor
|
Modifier and Type | Method | Description |
---|---|---|
FileMode |
AbstractTreeIterator.getEntryFileMode() |
|
FileMode |
TreeWalk.getFileMode(int nth) |
Obtain the
FileMode for the current entry. |
FileMode |
WorkingTreeIterator.getIndexFileMode(DirCacheIterator indexIter) |
Get the file mode to use for the current entry when it is to be updated
in the index.
|
FileMode |
FileTreeIterator.FileEntry.getMode() |
|
abstract FileMode |
WorkingTreeIterator.Entry.getMode() |
Get the type of this entry.
|
Copyright © 2018. All rights reserved.