Class RefAdvancerWalk

java.lang.Object
org.eclipse.jgit.internal.revwalk.RefAdvancerWalk

public class RefAdvancerWalk extends Object
Walk from some commits and find where to they enter a pack
  • Constructor Details

  • Method Details

    • advance

      public Set<RevCommit> advance(List<ObjectId> allTips) throws IOException
      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