Class 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 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.