Skip to content

Instantly share code, notes, and snippets.

@akscram
Last active December 25, 2015 21:28
Show Gist options
  • Save akscram/7042341 to your computer and use it in GitHub Desktop.
Save akscram/7042341 to your computer and use it in GitHub Desktop.
A little bit about how you can refer to code.

Simple and short references to OpenStack code.

Navigation

The format of well-defined URL to some file into SCM can be represented in next format:

git.openstack.org/{repo}/{path}?{modifiers}#{line}

The definition:

  • {repo} is a name of repositorie at http://git.openstack.org/cgit, but there are serveral prefixies like (and their short version into brackets):

    • openstack (o/)
    • openstack-dev (od/)
    • openstack-infra (oi/)
    • stackforge (s/)

    Also, a {repo} semantically look like a {path}.

  • {path} is a path to file into file system, e.g. like n/s/f/ram_filter.py (is a nova/scheduler/filters/ram_filter.py).

  • {line} is a just integer value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment