RefServlet: Use full refname in link

The servlet is checking whether the shortname of each reference expands
to some other refname so that it can make a short link that points to
the right target. For example, "refs/heads/foo" can be linked as
"test/+/foo" instead of "test/+/refs/heads/foo" when there is no other
expansion for "foo".

It is nice to have a short, comprehensible URL that the user can
manipulate. However, this check is expensive, specially when there are
many branches and tags.

Always use full reference names in the links. It is barely noticeable to
the user and speeds up page generation.

Note that the short links are still valid. They are just not shown in
this page.

Change-Id: I1b6a15b3f584e85c56c08e31a24cdddc3129d883
2 files changed
tree: 27f416d2024865960b460c9d4d6e93bd23971d64
  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.