Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.blame |
Computing blame/annotate information of files.
|
org.eclipse.jgit.gitrepo | |
org.eclipse.jgit.internal.revwalk | |
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
org.eclipse.jgit.merge |
Content and commit history merge algorithms.
|
org.eclipse.jgit.notes |
Git notes processing (for commits, etc).
|
org.eclipse.jgit.revplot |
Building/rendering revision graphs.
|
org.eclipse.jgit.revwalk |
Walking revision graphs (commit history).
|
org.eclipse.jgit.revwalk.filter |
Filters for use in revision walking.
|
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
org.eclipse.jgit.util |
Utility classes.
|
Modifier and Type | Method and Description |
---|---|
RevCommit |
StashCreateCommand.call() |
RevCommit |
CommitCommand.call() |
RevCommit |
RevertCommand.call() |
RevCommit |
RebaseResult.getCurrentCommit()
Get the current commit if status is
RebaseResult.Status.STOPPED , otherwise
null |
RevCommit |
CherryPickResult.getNewHead()
Get the new head after this cherry-pick
|
RevCommit |
RebaseCommand.tryFastForward(RevCommit newCommit)
Check if we can fast-forward and returns the new head if it is possible
|
Modifier and Type | Method and Description |
---|---|
Collection<RevCommit> |
StashListCommand.call() |
Iterable<RevCommit> |
LogCommand.call() |
Modifier and Type | Method and Description |
---|---|
CreateBranchCommand |
CreateBranchCommand.setStartPoint(RevCommit startPoint)
Set the start point
|
CheckoutCommand |
CheckoutCommand.setStartPoint(RevCommit startCommit)
Set the commit that should be checked out.
|
RebaseCommand |
RebaseCommand.setUpstream(RevCommit upstream)
Set upstream
RevCommit |
RevCommit |
RebaseCommand.tryFastForward(RevCommit newCommit)
Check if we can fast-forward and returns the new head if it is possible
|
Constructor and Description |
---|
CherryPickResult(RevCommit newHead,
List<Ref> cherryPickedRefs)
Constructor for CherryPickResult
|
Modifier and Type | Method and Description |
---|---|
RevCommit |
BlameGenerator.getSourceCommit()
Get the revision blamed for the current region.
|
RevCommit |
BlameResult.getSourceCommit(int idx)
Get the commit that provided the specified line of the result.
|
Modifier and Type | Method and Description |
---|---|
RevCommit |
RepoCommand.call() |
Modifier and Type | Method and Description |
---|---|
boolean |
AddToBitmapFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
boolean |
AddUnseenToBitmapFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
Modifier and Type | Method and Description |
---|---|
RevCommit |
Repository.parseCommit(AnyObjectId id)
Locate a reference to a commit and immediately parse its content.
|
Modifier and Type | Method and Description |
---|---|
void |
TreeFormatter.append(String name,
RevCommit commit)
Add a link to a submodule commit, mode is
FileMode.GITLINK . |
Modifier and Type | Field and Description |
---|---|
protected RevCommit[] |
Merger.sourceCommits
If
Merger.sourceObjects [i] is a commit, this is the commit. |
Modifier and Type | Method and Description |
---|---|
protected RevCommit |
RecursiveMerger.getBaseCommit(RevCommit a,
RevCommit b)
Return the merge base of two commits.
|
protected RevCommit |
Merger.getBaseCommit(RevCommit a,
RevCommit b)
Return the merge base of two commits.
|
protected RevCommit |
RecursiveMerger.getBaseCommit(RevCommit a,
RevCommit b,
int callDepth)
Get a single base commit for two given commits.
|
Modifier and Type | Method and Description |
---|---|
protected RevCommit |
RecursiveMerger.getBaseCommit(RevCommit a,
RevCommit b)
Return the merge base of two commits.
|
protected RevCommit |
Merger.getBaseCommit(RevCommit a,
RevCommit b)
Return the merge base of two commits.
|
protected RevCommit |
RecursiveMerger.getBaseCommit(RevCommit a,
RevCommit b,
int callDepth)
Get a single base commit for two given commits.
|
Modifier and Type | Method and Description |
---|---|
String |
SquashMessageFormatter.format(List<RevCommit> squashedCommits,
Ref target)
Construct the squashed commit message.
|
Modifier and Type | Method and Description |
---|---|
static NoteMap |
NoteMap.read(ObjectReader reader,
RevCommit commit)
Load a collection of notes from a branch.
|
Modifier and Type | Class and Description |
---|---|
class |
PlotCommit<L extends PlotLane>
A commit reference to a commit in the DAG.
|
Modifier and Type | Method and Description |
---|---|
protected RevCommit |
PlotWalk.createCommit(AnyObjectId id)
Construct a new unparsed commit for the given object.
|
RevCommit |
PlotWalk.next()
Pop the next most recent commit.
|
Modifier and Type | Class and Description |
---|---|
class |
RevCommitList<E extends RevCommit>
An ordered list of
RevCommit subclasses. |
Modifier and Type | Class and Description |
---|---|
static class |
DepthWalk.Commit
RevCommit with a depth (in commits) from a root.
|
Modifier and Type | Method and Description |
---|---|
protected RevCommit |
DepthWalk.RevWalk.createCommit(AnyObjectId id) |
protected RevCommit |
DepthWalk.ObjectWalk.createCommit(AnyObjectId id) |
protected RevCommit |
RevWalk.createCommit(AnyObjectId id)
Construct a new unparsed commit for the given object.
|
RevCommit |
RevCommit.getParent(int nth)
Get the nth parent from this commit's parent list.
|
RevCommit[] |
RevCommit.getParents()
Obtain an array of all parents (NOTE - THIS IS NOT A COPY).
|
RevCommit |
RevWalk.lookupCommit(AnyObjectId id)
Locate a reference to a commit without loading it.
|
RevCommit |
RevWalk.next()
Pop the next most recent commit.
|
RevCommit |
FIFORevQueue.next()
Return the next commit to the application, or the next generator.
|
RevCommit |
DateRevQueue.next()
Return the next commit to the application, or the next generator.
|
RevCommit |
ObjectWalk.next()
Pop the next most recent commit.
|
RevCommit |
LIFORevQueue.next()
Return the next commit to the application, or the next generator.
|
static RevCommit |
RevCommit.parse(byte[] raw)
Parse a commit from its canonical format.
|
static RevCommit |
RevCommit.parse(RevWalk rw,
byte[] raw)
Parse a commit from its canonical format.
|
RevCommit |
RevWalk.parseCommit(AnyObjectId id)
Locate a reference to a commit and immediately parse its content.
|
RevCommit |
DateRevQueue.peek()
Peek at the next commit, without removing it.
|
Modifier and Type | Method and Description |
---|---|
static List<RevCommit> |
RevWalkUtils.find(RevWalk walk,
RevCommit start,
RevCommit end)
Find commits that are reachable from
start until a commit
that is reachable from end is encountered. |
Iterator<RevCommit> |
RevWalk.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
FIFORevQueue.add(RevCommit c)
Add a commit to the queue.
|
void |
DateRevQueue.add(RevCommit c)
Add a commit to the queue.
|
void |
LIFORevQueue.add(RevCommit c)
Add a commit to the queue.
|
static int |
RevWalkUtils.count(RevWalk walk,
RevCommit start,
RevCommit end)
Count the number of commits that are reachable from
start
until a commit that is reachable from end is encountered. |
void |
RevCommitList.fillTo(RevCommit commitToLoad,
int highMark)
Ensures all commits until the given commit are loaded.
|
static List<RevCommit> |
RevWalkUtils.find(RevWalk walk,
RevCommit start,
RevCommit end)
Find commits that are reachable from
start until a commit
that is reachable from end is encountered. |
static List<Ref> |
RevWalkUtils.findBranchesReachableFrom(RevCommit commit,
RevWalk revWalk,
Collection<Ref> refs)
Find the list of branches a given commit is reachable from when following
parent.s
|
boolean |
TreeRevFilter.include(RevWalk walker,
RevCommit c)
Determine if the supplied commit should be included in results.
|
boolean |
RevWalk.isMergedInto(RevCommit base,
RevCommit tip)
Determine if a commit is reachable from another commit.
|
void |
DepthWalk.RevWalk.markRoot(RevCommit c)
Mark a root commit (i.e., one whose depth should be considered 0.)
|
void |
RevWalk.markStart(RevCommit c)
Mark a commit to start graph traversal from.
|
void |
RevWalk.markUninteresting(RevCommit c)
Mark a commit to not produce in the output.
|
void |
FIFORevQueue.unpop(RevCommit c)
Insert the commit pointer at the front of the queue.
|
Modifier and Type | Method and Description |
---|---|
void |
RevWalk.markStart(Collection<RevCommit> list)
Mark commits to start graph traversal from.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PatternMatchRevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
boolean |
SkipRevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
abstract boolean |
RevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
boolean |
NotRevFilter.include(RevWalk walker,
RevCommit c)
Determine if the supplied commit should be included in results.
|
boolean |
SubStringRevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
boolean |
MaxCountRevFilter.include(RevWalk walker,
RevCommit cmit)
Determine if the supplied commit should be included in results.
|
protected abstract CharSequence |
PatternMatchRevFilter.text(RevCommit cmit)
Obtain the raw text to match against.
|
protected abstract RawCharSequence |
SubStringRevFilter.text(RevCommit cmit)
Obtain the raw text to match against.
|
Modifier and Type | Method and Description |
---|---|
void |
BundleWriter.assume(RevCommit c)
Assume a commit is available on the recipient's side.
|
Modifier and Type | Method and Description |
---|---|
static Attributes |
LfsFactory.getAttributesForPath(Repository db,
String path,
RevCommit commit)
Get attributes for given path and commit
|
Copyright © 2018 Eclipse JGit Project. All rights reserved.