Template:Git-branch

From The Dreaming
Revision as of 17:53, 25 August 2016 by Stuart (talk | contribs) (Template cribbed from Blue Prism (well, I wrote it))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creates a link to a branch within gitlab

Usage

Takes a single parameter - the name of the branch to create a link to. If no parameter is given, this will link to master.

Examples

Without a parameter:

{{git-branch}}

will produce: master

Given a parameter, it will link to that branch, eg.

{{git-branch|v4.1}}

will emit: v4.1