Template:Git

From Linux Web Expert

(Redirected from Template:Git commit)

git #example

Template documentation

Usage

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

Git

<templatedata> { "description": { "en": "Produce a link to a Git commit or Gerrit changeset.", "cs": "Vytvořte odkaz na Git commit nebo Gerrit changeset." }, "format": "inline", "params": { "1": { "label": { "en": "", "cs": "ID" }, "description": { "en": "The SHA1 hash of the Git commit, or Gerrit change number, or Gerrit Change-Id hash", "cs": "Hash SHA1 potvrzení Git nebo číslo změny Gerrit nebo hash Gerrit Change-Id" }, "required": true, "type": "string" } } } </templatedata>

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