Template:Git file/doc

This generates a link to a file in Diffusion (Phabricator).

Usage
produces
 * Basic

produces

produces
 * text

produces
 * action

produces

produces
 * line number

produces
 * project summary page (deprecated)

^ 2015-08-27 this is actually only working by coincidence, https://phabricator.wikimedia.org/diffusion/GOJS/blahblah/anythingUnrecognized also redirects to the simple https://phabricator.wikimedia.org/diffusion/GOJS/ summary page ''Instead use the proper git repo template.

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. . TODO: unlike old gitblit URLs, this doesn't work to link to a particular commit.


 * 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?