Support branch redirect in Gitiles

- it's for helping users keep their old URLs working when migrating
  from branch names like "studio-master-dev" to "studio-main-dev"

- to avoid confusing automation, it only affects interactive browsing,
  not `?format=JSON` API calls

- it's customizable and we anticipate that Gerrit's gitiles plugin will
  override the BranchRedirectFilter class as part of the same effort as

PiperOrigin-RevId: 348239020
Change-Id: I80729c8f315ca80f874e07d6919734cb07120625
5 files changed
tree: f2f8e1e921ec88845d0c9bc602b23a3ecaba1b0d
  1. .settings/
  2. Documentation/
  3. java/
  4. javatests/
  5. lib/
  6. resources/
  7. tools/
  8. .bazelrc
  9. .bazelversion
  10. .gitignore
  11. .mailmap
  12. BUILD
  14. fake_pom_deploy.xml
  17. 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.