Package com.google.gerrit.server.change
Class IncludedInUtil
- java.lang.Object
-
- com.google.gerrit.server.change.IncludedInUtil
-
public class IncludedInUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description IncludedInUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.eclipse.jgit.lib.Ref>
getSortedRefs(Collection<org.eclipse.jgit.lib.Ref> refs, org.eclipse.jgit.revwalk.RevWalk revWalk)
Sorts the collection ofRef
instances by its tip commit time.
-
-
-
Method Detail
-
getSortedRefs
public static List<org.eclipse.jgit.lib.Ref> getSortedRefs(Collection<org.eclipse.jgit.lib.Ref> refs, org.eclipse.jgit.revwalk.RevWalk revWalk)
Sorts the collection ofRef
instances by its tip commit time.- Parameters:
refs
- collection to be sortedrevWalk
-RevWalk
instance for parsing ref's tip commit- Returns:
- sorted list of refs
-
-