java.lang.Object
org.eclipse.jgit.internal.revwalk.RefAdvancerWalk
Walk from some commits and find where to they enter a pack
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTrue when the commit is in the target set -
Constructor Summary
ConstructorsConstructorDescriptionRefAdvancerWalk(Repository db, RefAdvancerWalk.InPackPredicate include) Constructor -
Method Summary
-
Constructor Details
-
RefAdvancerWalk
Constructor- Parameters:
db- a repositoryinclude- predicate telling if a commit in the target set
-
-
Method Details
-
advance
Advance the tips to their first commit inside the pack- Parameters:
allTips- tips of interesting refs- Returns:
- first commit(s) where the tips enter the pack. A tips may translate into 0 commits (it doesn't enter the pack in its history), 1 commit (a linear history) or n commits (merges lead to multiple histories into the pack). A tip already inside the pack is returned as it is.
- Throws:
IOException- error browsing history
-