Package | Description |
---|---|
org.eclipse.jgit.errors |
Exceptions thrown by lower-level JGit APIs.
|
org.eclipse.jgit.internal.storage.reftree | |
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
org.eclipse.jgit.revwalk |
Walking revision graphs (commit history).
|
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
org.eclipse.jgit.util |
Utility classes.
|
Modifier and Type | Method and Description |
---|---|
ObjectChecker.ErrorType |
CorruptObjectException.getErrorType()
Specific error condition identified by
ObjectChecker . |
Modifier and Type | Method and Description |
---|---|
Ref |
RefTree.exactRef(ObjectReader reader,
String name)
Read one reference.
|
String |
Command.getMessage() |
Ref |
Command.getNewRef()
New peeled reference.
|
Ref |
Command.getOldRef()
Old peeled reference.
|
String |
RefTreeDatabase.getTxnNamespace() |
Modifier and Type | Method and Description |
---|---|
static void |
Command.abort(Iterable<Command> commands,
String why)
Set unprocessed commands as failed due to transaction aborted.
|
void |
Command.setResult(ReceiveCommand.Result result,
String why)
Set the result of this command.
|
Constructor and Description |
---|
Command(Ref oldRef,
Ref newRef)
Create a command to create, update or delete a reference.
|
Command(Ref oldRef,
Ref newRef)
Create a command to create, update or delete a reference.
|
Modifier and Type | Method and Description |
---|---|
Ref |
Repository.exactRef(String name)
Get a ref by name.
|
Ref |
RefDatabase.exactRef(String name)
Read a single reference.
|
static Ref |
RefDatabase.findRef(Map<String,Ref> map,
String name)
Try to find the specified name in the ref map using
RefDatabase.SEARCH_PATH . |
Ref |
Repository.findRef(String name)
Search for a ref by (possibly abbreviated) name.
|
Ref |
RefDatabase.firstExactRef(String... refs)
Find the first named reference.
|
String |
Repository.getBranch()
Get the short name of the current branch that
HEAD points to. |
String |
Repository.getFullBranch()
Get the name of the reference that
HEAD points to. |
ObjectId |
SymbolicRef.getObjectId() |
ObjectId |
Ref.getObjectId()
Cached value of this ref.
|
ObjectId |
ObjectIdRef.getObjectId() |
ObjectId |
SymbolicRef.getPeeledObjectId() |
ObjectId |
Ref.getPeeledObjectId()
Cached value of
ref^{} (the ref peeled to commit). |
ObjectId |
ObjectIdRef.Unpeeled.getPeeledObjectId() |
ObjectId |
ObjectIdRef.PeeledNonTag.getPeeledObjectId() |
Ref |
Repository.getRef(String name)
Deprecated.
Use
Repository.exactRef(String) or Repository.findRef(String)
instead. |
abstract Ref |
RefDatabase.getRef(String name)
Read a single reference.
|
abstract ReflogReader |
Repository.getReflogReader(String refName) |
String |
Repository.getRemoteName(String refName) |
ObjectId |
Repository.readCherryPickHead()
Return the information stored in the file $GIT_DIR/CHERRY_PICK_HEAD.
|
String |
Repository.readCommitEditMsg()
Return the information stored in the file $GIT_DIR/COMMIT_EDITMSG.
|
String |
Repository.readMergeCommitMsg()
Return the information stored in the file $GIT_DIR/MERGE_MSG.
|
List<ObjectId> |
Repository.readMergeHeads()
Return the information stored in the file $GIT_DIR/MERGE_HEAD.
|
ObjectId |
Repository.readOrigHead()
Return the information stored in the file $GIT_DIR/ORIG_HEAD.
|
ObjectId |
Repository.readRevertHead()
Return the information stored in the file $GIT_DIR/REVERT_HEAD.
|
String |
Repository.readSquashCommitMsg()
Return the information stored in the file $GIT_DIR/SQUASH_MSG.
|
ObjectId |
Repository.resolve(String revstr)
Parse a git revision string and return an object id.
|
String |
Repository.shortenRemoteBranchName(String refName) |
String |
Repository.simplify(String revstr)
Simplify an expression, but unlike
Repository.resolve(String) it will not
resolve a branch passed or resulting from the expression, such as @{-}. |
Modifier and Type | Method and Description |
---|---|
void |
ObjectChecker.check(AnyObjectId id,
int objType,
byte[] raw)
Check an object for parsing errors.
|
void |
ObjectChecker.checkCommit(AnyObjectId id,
byte[] raw)
Check a commit for errors.
|
void |
ObjectChecker.checkTag(AnyObjectId id,
byte[] raw)
Check an annotated tag for errors.
|
void |
ObjectChecker.checkTree(AnyObjectId id,
byte[] raw)
Check a canonical formatted tree for errors.
|
ObjectChecker |
ObjectChecker.setIgnore(Set<ObjectChecker.ErrorType> ids)
Configure error types to be ignored across all objects.
|
ObjectChecker |
ObjectChecker.setSkipList(ObjectIdSet objects)
Enable accepting specific malformed (but not horribly broken) objects.
|
Constructor and Description |
---|
ObjectIdRef.PeeledNonTag(Ref.Storage st,
String name,
ObjectId id)
Create a new ref pairing.
|
ObjectIdRef.PeeledTag(Ref.Storage st,
String name,
ObjectId id,
ObjectId p)
Create a new ref pairing.
|
ObjectIdRef.Unpeeled(Ref.Storage st,
String name,
ObjectId id)
Create a new ref pairing.
|
ObjectIdRef(Ref.Storage st,
String name,
ObjectId id)
Create a new ref pairing.
|
Modifier and Type | Method and Description |
---|---|
String |
RevCommit.getEncodingName()
Determine the encoding of the commit message buffer.
|
Modifier and Type | Method and Description |
---|---|
ObjectChecker |
TransferConfig.newObjectChecker() |
ObjectChecker |
TransferConfig.newReceiveObjectChecker() |
Modifier and Type | Method and Description |
---|---|
static String |
RawParseUtils.parseEncodingName(byte[] b)
Parse the "encoding " header as a string.
|
protected static String |
FS.readPipe(File dir,
String[] command,
String encoding)
Execute a command and return a single line of output as a String
|
protected static String |
FS.readPipe(File dir,
String[] command,
String encoding,
Map<String,String> env)
Execute a command and return a single line of output as a String
|
Copyright © 2016 Eclipse JGit Project. All rights reserved.