VisibilityChecker: Use RefDatabase.getTipsWithSha1() for visibility check

The visibility check retrieves all refs, peels them and compares if
they point to the requested object. This is offered now in in the
RefDatabase.getTipsWithSha1() method. Using that method, we also
benefit from fine-tuned implementations for the specific storage in use.

Replace the loop with that method.

Change-Id: I2623a3fc99cffcd791aa0c6450aba08d00408ca4
Signed-off-by: Ivan Frade <>
1 file changed
tree: cb924f911fd2bd841300f53fbb68db4a1d2a7198
  1. .settings/
  2. Documentation/
  3. java/
  4. javatests/
  5. lib/
  6. resources/
  7. tools/
  8. .bazelrc
  9. .gitignore
  10. .mailmap
  11. BUILD
  13. fake_pom_deploy.xml
  16. version.bzl

Gitiles - A simple JGit repository browser

Gitiles is a simple repository browser for Git repositories, built on JGit. Its guiding principle is simplicity: it has no formal access controls, no write access, no fancy Javascript, etc.

Gitiles automatically renders *.md Markdown files into HTML for simplified documentation. Refer to the Markdown documentation for details.


Gitiles is configurable in a git-style configuration file named gitiles.config. Refer to the configuration documentation for details.


Use the issue tracker at github to file bugs.

Contributing to Gitiles

Please refer to the Developer Guide.