Revision: Allow @-sign in ref names

git-check-ref-format(1) explains:

 Git imposes the following rules on how references are named:

   8. They cannot contain a sequence @{.
   9. They cannot be the single character @.

An @-sign in the middle of a ref name is fine and unambiguous,
so allow it.

Noticed in the chromium/chromium/src repo:

 https://chromium.googlesource.com/chromium/src/+/refs/experimental/aarontag@chromium.org/cookie_dev_test

produces

 Cannot parse URL as a Gitiles URL

instead of showing that ref.

Bug: https://crbug.com/979850
Change-Id: Ie88daf76550e47f2da4e97acaa8081ef15e11831
2 files changed
tree: 9855e8a2f21bb38cb1ce6b4a71674e3a63f8157a
  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.