VisibilityCache: Split the visibility checks from the actual caching

VisibilityCache cache does two things: it calculates if something is
visible for the user AND caches the result.

Move the checks to the VisibilityChecker class. Besides better
separation of concerns, this allows us to plug for example an
instrumented checker.

Change-Id: I90701db964f454474d058ede834a24a25fac8f86
Signed-off-by: Ivan Frade <ifrade@google.com>
3 files changed
tree: 368d89ec943a1d828d8db8908aa19e86d40013c3
  1. .bazelrc
  2. .gitignore
  3. .mailmap
  4. .settings/
  5. BUILD
  6. COPYING
  7. Documentation/
  8. README.md
  9. WORKSPACE
  10. fake_pom_deploy.xml
  11. java/
  12. javatests/
  13. lib/
  14. navbar.md
  15. resources/
  16. tools/
  17. version.bzl
README.md

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.

Configuration

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

Bugs

Use the issue tracker at github to file bugs.

Contributing to Gitiles

Please refer to the Developer Guide.