Page MenuHomeFreeBSD

Add infrastructure for links to Git commits.
ClosedPublic

Authored by jhb on Dec 21 2020, 7:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 11, 10:50 PM
Unknown Object (File)
Thu, May 8, 5:28 AM
Unknown Object (File)
Mon, Apr 21, 8:36 AM
Unknown Object (File)
Sun, Apr 20, 3:56 AM
Unknown Object (File)
Apr 11 2025, 8:00 PM
Unknown Object (File)
Apr 3 2025, 6:21 AM
Unknown Object (File)
Feb 23 2025, 2:20 PM
Unknown Object (File)
Feb 9 2025, 10:46 AM
Subscribers

Details

Summary
  • Add a <githash> tag which accepts a Git hash. Leave <revnumber> as is for svn revisions. In theory we could add a new attribute to <revnumber> to say which VCS to use, but this would require tagging either all SVN revisions or all Git hashes explicitly which would be invasive. A new tag going forward seems simpler.
  • Revert svnweb.link back to generating svnweb links. This fixes all the explicit <revnumber>'s referring to SVN src commits in existing documentation.
  • Add a cgit.link which links to a Git commit in cgit. githash generates cgit.link's when asked to generate a href.

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 35625
Build 32520: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Dec 21 2020, 7:12 PM
jhb created this revision.
This revision is now accepted and ready to land.Dec 22 2020, 5:58 PM
gjb requested changes to this revision.Dec 22 2020, 6:18 PM

I noticed the output is empty. I'll look into what is going on and let you know.

This revision now requires changes to proceed.Dec 22 2020, 6:18 PM
  • Fix wrong select for githash revision.

This now works for me when adding some test <githash> entries to porters-handbook/versions/chapter.xml.

This revision is now accepted and ready to land.Dec 22 2020, 7:07 PM

looks good to the extent of my knowledge of this

  • Add styling for gitref.
This revision now requires review to proceed.Dec 22 2020, 7:16 PM
This revision is now accepted and ready to land.Dec 22 2020, 7:37 PM
This revision was automatically updated to reflect the committed changes.