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: 6a42886f0e15e6df788cfbe720edda88b94b2c74
  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.