Package com.google.gerrit.server.change
Class IncludedInUtil
java.lang.Object
com.google.gerrit.server.change.IncludedInUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
IncludedInUtil
public IncludedInUtil()
-
-
Method Details
-
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
-