跳转到内容

模板:Git

来自天灾之下:危险连接资料站
wiki>94rain2023年11月29日 (三) 05:37的版本 (Protected "Template:Git": Highly visible page or template: 6827 transclusions ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

git #example

模板文档

Usage

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Git

Produce a link to a Git commit or Gerrit changeset.

模板参数[编辑模板数据]

此模板首选参数不换行的行内格式。

参数描述类型状态
1

The SHA1 hash of the Git commit, or Gerrit change number, or Gerrit Change-Id hash

字符串必需

Examples

Basic call without parameters (Gerrit search)

{{Git}}

git #example

Gerrit change number

{{Gerrit|4203}}

Gerrit change 4203

Gerrit change id

{{Gerrit|I2d7d6eeef07552b796a68963ccd4f89f4c5939d7}}

Gerrit #I2d7d6e

Git commit id

{{Git|3b85ab0624afe5a53bb60c558f0bef4d6dfb43cd}}

git #3b85ab06

{{Git|3b85ab0}}

git #3b85ab0

See also