Vetrix Docs

Browsing code

Every repository opens on its code, so you can read files straight from the browser without cloning. From the file list you can drill into folders, open a file to read it with syntax highlighting, jump to the raw text, and see who last changed each line. This page covers the file tree, the file viewer, the raw view, and the blame view.

Where to find it

Select Code in the repository sidebar to return to the repository home, which lists the files at the top of the default branch. Open a folder to move deeper into the tree, or open a file to read it.

  • File list (repository home): gitvetrix.com/<owner>/<repo>
  • Folder: gitvetrix.com/<owner>/<repo>/tree/<branch>/<path>
  • File: gitvetrix.com/<owner>/<repo>/blob/<branch>/<path>
  • Raw file: gitvetrix.com/<owner>/<repo>/raw/<branch>/<path>
  • Blame: gitvetrix.com/<owner>/<repo>/blame/<branch>/<path>

Browse the file tree

  1. Open the repository to see its files under the branch selector.
  2. Read the file list. Folders are listed first, then files, each sorted by name. The Name column shows every entry; on wider screens a Last commit column shows the most recent commit message and an Age column shows how long ago each entry last changed.
  3. Select a folder name to open it. A breadcrumb above the list shows your place as owner / repo / folder, and each part is a link back up the tree.
  4. Inside a folder, select the .. row at the top of the list to step back up to the parent folder.
  5. Select a file name to open it in the file viewer.

Switch branches

  1. Open the repository home.
  2. Select the branch selector above the file list. It is labelled Select branch… until a branch is chosen.
  3. Start typing to filter the list, then select the branch you want.

The file list reloads to show that branch, and the branch name becomes part of the address so you can share or bookmark the exact view.

Read a file

  1. Open a file from the file tree.
  2. Read the file below the breadcrumb. Text files appear with line numbers and syntax highlighting for the detected language.
  3. Use the small bar above the file to check its details: the detected language and the file size appear on the left, followed by the Raw, Blame, and History links.
  4. Select History to open the commit history for the current branch.

Markdown files render as formatted text rather than raw source. Image files show an inline preview. Other binary files cannot be shown inline: Vetrix displays a Binary file notice with the size and a Download link instead.

  1. Open a text file in the file viewer.
  2. Add #L and a line number to the end of the address, such as #L42, to highlight that line.
  3. To highlight a range, join the first and last line numbers, such as #L42-L55.

The highlighted lines stay highlighted when you share the address, so you can point someone at an exact passage.

Open the raw file

  1. Open a file in the file viewer.
  2. Select Raw.

The unformatted file content opens in a new browser tab, with no page styling around it. This is the view to copy from or to download a single file directly.

See who changed each line (blame)

  1. Open a text file in the file viewer.
  2. Select Blame.
  3. Read the blame view: each line of the file is on the right, and the commit that last changed it is on the left, showing the short commit ID, the author, and how long ago the change was made.
  4. Hover over any line to highlight every line that came from the same commit.
  5. Select a commit ID to open that commit's details.
  6. Select View file in the top-right corner to return to the normal file viewer.
  • Symbols — search the functions, classes, types, and constants indexed from a repository's code.