6,566
edits
(Base GitHub repository URL support, if only the user/proj and repo parameters are supplied.) |
(Gitorious archive support for the tag parameter.) |
||
Line 343: | Line 343: | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{path|}}} | ;f={{{path|}}}}}<!-- The file or directory path. | -->{{#if: {{{path|}}} | ;f={{{path|}}}}}<!-- The file or directory path. | ||
-->{{#if: {{{commit|{{{branch|{{{mr|}}}}}}}}} <!-- | -->{{#if: {{{commit|{{{tag|{{{branch|{{{mr|}}}}}}}}}}}} <!-- The commit, tag, branch, or merge request query string. --> | ||
| {{#if: {{{view|}}} | | {{#if: {{{view|}}} | ||
| {{#switch: {{{view|}}} | | {{#switch: {{{view|}}} | ||
Line 359: | Line 359: | ||
| {{#if: {{{commit|}}} | | {{#if: {{{commit|}}} | ||
| {{{commit}}} <!-- The commit hash. --> | | {{{commit}}} <!-- The commit hash. --> | ||
| {{#if: {{{branch|}}}<!-- | | {{#if: {{{tag|}}}<!-- The internal git reference for the tag. --> | ||
| refs/tags/{{{tag}}} | |||
| {{#if: {{{branch|}}}<!-- The internal git reference for the branch. --> | |||
| refs/heads/{{{branch}}} | |||
}} | |||
}} | }} | ||
}} | }} | ||
Line 382: | Line 385: | ||
-->{{#if: {{{mr|}}} | -->{{#if: {{{mr|}}} | ||
| merge-requests/{{{mr}}}<!-- The merge request.--> | | merge-requests/{{{mr}}}<!-- The merge request.--> | ||
| {{{commit|{{{branch|HEAD}}}}}}<!-- | | {{{commit|{{{tag|{{{branch|HEAD}}}}}}}}}<!-- Or the commit, tag or branch.--> | ||
}} | }} | ||
}} | }} |