Package com.google.gerrit.server.project
Class Reachable
- java.lang.Object
-
- com.google.gerrit.server.project.Reachable
-
public class Reachable extends Object
Report whether a commit is reachable from a set of commits. This is used for checking if a user has read permissions on a commit.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
fromRefs(Project.NameKey project, org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.revwalk.RevCommit commit, Map<String,org.eclipse.jgit.lib.Ref> refs)
-
-
-
Method Detail
-
fromRefs
public boolean fromRefs(Project.NameKey project, org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.revwalk.RevCommit commit, Map<String,org.eclipse.jgit.lib.Ref> refs)
- Returns:
- true if a commit is reachable from a given set of refs.
-
-