Gerrit/Gitiles

Gitiles is the web page that allows you to view the source code of a repository in Gerrit.

The current code for a repository is usually found in the "master" branch so click on the "master" link in the "Branches" sidebar on the left to get to it.

Getting to Gitiles
The Gitiles page for a repository can be navigated to from the:
 * General section of the Adminstration page of a Gerrit repository by clicking "Browse". For example, the Administration page of the MediaWiki repository is https://gerrit.wikimedia.org/r/admin/repos/mediawiki/core,general.
 * Changes list of a repository by clicking the  link. For example, the Changes list of the MediaWiki repository is https://gerrit.wikimedia.org/r/q/project:mediawiki%252Fcore.
 * Description of a Gerrit respository mirrored to GitHub. For example, the Wikibase repository mirror is located at https://github.com/wikimedia/Wikibase.

If you have trouble getting to gitiles page or cannot find the Gerrit repository for the code you are looking for, try using Wikimedia Codesearch to locate the repository. You could also check if a GitHub mirror of the repository exists by searching for " github". Gitiles repositories are not indexed by search engines so looking up  likely will not provide you helpful results.

Navigation
The main Gitiles page for a repository contains an SSH link at the top to clone the repository. This link will not work unless you are signed into the Wikimedia Gerrit server over SSH.

On the left there is a sidebar that lists branches of the repository and tags marking the commits of specific releases of the software.

Below the clone link, there is a list of the most recent commits to the repository and to which branch (usually master).

Finally below the list of commits there is README.md of the repository from the current master branch.