commit.mdwn 614 B

123456789101112131415
  1. This is a template for [[!rel4sub git]] commits. Parameters:
  2. - `repo`: Name of the Git repository, without the `.git` suffix (required)
  3. - `hashb`: The beginning of commits's hash string, to be displayed (required)
  4. - `hashr`: The rest of the hash string (default: empty)
  5. - `label`: Optional text to show instead of the hash beginning (default: none,
  6. show hash beginning)
  7. [[!templatebody <<ENDBODY
  8. <a href="http://git.rel4tion.org/?p=<TMPL_VAR repo>.git;a=commit;h=<TMPL_VAR hashb><TMPL_VAR hashr>">
  9. <TMPL_VAR repo> >>
  10. <TMPL_IF label><TMPL_VAR label><TMPL_ELSE><TMPL_VAR hashb></TMPL_IF>
  11. </a>
  12. ENDBODY]]