Template:Git file/doc

This generates a link to a file in Diffusion on https://git.wikimedia.org, our Gitblit server.

Usage
produces
 * Basic

produces

produces
 * text

produces
 * action

produces

produces
 * line number

produces
 * project summary page

See also gitblit

Parameters

 * project
 * defaults to mediawiki/core. Must be entire path to project &mdash; e.g. mediawiki/extensions/EventLogging, not "EventLogging" and without any .git suffix. The template uses Module:Callsigns to map this to a Diffision "callsign", e.g. EEVL.


 * branch
 * defaults to HEAD, or you can specify e.g..


 * file
 * optional. A file or directory within the project, without the leading '/ ' . If you just want to link to the project, use gitweb. Note to avoid confusion you may want to invoke this template with underscore &mdash;.


 * text
 * optional. The text that's linked. If not specified, defaults to file.


 * action
 * optional. You can give a Diffusion  action Gitblit action, e.g.   ,   (enables Diffusion "blame mode"),  . Use   to link to a directory in the project. Note: Diffusion doesn't support gerrit/gitweb's action blob_plain


 * line
 * optional.  will add a fragment to the URL that positions the browser at line 42 of the file.

Known issues

 * Merge with Git, or maybe Gerrit, MW file, etc. but simpler?