Template:Git: Difference between revisions

From QEMU
(Create template for linking to git commits)
 
(Update upstream git repository URL)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
[http://repo.or.cz/w/qemu.git/commitdiff/{{{1}}} (commit)]<noinclude>
[https://gitlab.com/qemu-project/qemu/-/commit/{{{1}}} (commit <code>{{{1}}}</code>)]<noinclude>
= Documentation =
= Documentation =


Line 7: Line 7:


<pre>{{git|d967b2f}}</pre>
<pre>{{git|d967b2f}}</pre>
will make
{{git|d967b2f}}


[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>

Latest revision as of 18:20, 17 February 2024

(commit {{{1}}})

Documentation

Template for linking to git commits. This should be used instead of hard-coding the host and path to WebGit to make it easier to change broken links due to of moved hosts and changed paths.

Template for copying

{{git|d967b2f}}

will make

(commit d967b2f)