java.lang.Object
org.eclipse.jgit.revwalk.FIFORevQueue
A queue of commits in FIFO order.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected org.eclipse.jgit.revwalk.BlockRevQueue.BlockFreeList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a commit to the queue.final voidAdd a commit if it does not have a flag set yet, then set the flag.final voidaddParents(RevCommit c, RevFlag queueControl) Add a commit's parents if one does not have a flag set yet.voidclear()Remove all entries from this queue.protected static voiddescribe(StringBuilder s, RevCommit c) Describe this queuenext()voidshareFreeList(org.eclipse.jgit.revwalk.BlockRevQueue q) toString()voidInsert the commit pointer at the front of the queue.
-
Field Details
-
free
protected org.eclipse.jgit.revwalk.BlockRevQueue.BlockFreeList free -
firstParent
protected final boolean firstParent
-
-
Constructor Details
-
FIFORevQueue
public FIFORevQueue()Create an empty FIFO queue.
-
-
Method Details
-
add
Add a commit to the queue.This method always adds the commit, even if it is already in the queue or previously was in the queue but has already been removed. To control queue admission use
add(RevCommit, RevFlag).- Parameters:
c- commit to add.
-
unpop
Insert the commit pointer at the front of the queue.- Parameters:
c- the commit to insert into the queue.
-
next
Remove the first commit from the queue.
-
clear
public void clear()Remove all entries from this queue. -
toString
-
add
Add a commit if it does not have a flag set yet, then set the flag.This method permits the application to test if the commit has the given flag; if it does not already have the flag than the commit is added to the queue and the flag is set. This later will prevent the commit from being added twice.
- Parameters:
c- commit to add.queueControl- flag that controls admission to the queue.
-
addParents
Add a commit's parents if one does not have a flag set yet.This method permits the application to test if the commit has the given flag; if it does not already have the flag than the commit is added to the queue and the flag is set. This later will prevent the commit from being added twice.
- Parameters:
c- commit whose parents should be added.queueControl- flag that controls admission to the queue.
-
describe
Describe this queue- Parameters:
s- a StringBuilderc- aRevCommit
-