| Package | Description |
|---|---|
| org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
| org.eclipse.jgit.util |
Utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
Ref |
RefDatabase.exactRef(String name)
Read a single reference.
|
Ref |
Repository.exactRef(String name)
Get a ref by name.
|
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. |
abstract Ref |
RefDatabase.getRef(String name)
Read a single reference.
|
Ref |
Repository.getRef(String name)
Deprecated.
Use
Repository.exactRef(String) or Repository.findRef(String)
instead. |
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 |
|---|---|
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 © 2015 Eclipse JGit Project. All rights reserved.