Might be useful: [commit] tag

When referring to commits on the FreeBSD source repository/repositories it's only possible to link directly to the cgit.freebsd.com website using [ link ] tags.
It might be useful to have a tag mirroring what the [ PR ] tag does but for commits, although I reckon it'll have to support the main repositories separately (doc, ports, src).
 
Hmm, that might actually be reasonably easy to implement. Maybe something like [commit=src]<hash>[/commit], [commit=ports]<hash>[/commit]?
 
Test:

Very simple replacement, might need some improving, but the idea works.

[commit]8ae9921f2[/commit]
[commit=somethingweird]8ae9921f2[/commit]
Option isn't optional, can't seem to get it to default to anything. It also only accepts doc, ports or src.
 
Whilst it's true that cgit is used for primary mirroring, downsides include the somewhat meaningless titles.

Say, ten tabs, all "src - FreeBSD source tree" with zero information about the commit.

Postscript​

1729840482503.pngYesterday's test <https://forums.freebsd.org/profile-posts/5643/> compares three forge pages (Codeberg, GitHub, GitLab) with the cgit page for the same commit:
  • the cgit representation of the commit is relatively nondescript.
 
Last edited:
Not sure it's easy to implement or not, […]
From what I can tell we need to split it into three separate tags then. There are no tools to further operate on the parameter (unless you actually concoct your own PHP script).​
Greek capital delta is a reference to the POSIX™‑standardized SCCS tool delta(1) (≈ comparable to git-commit(1)).
 
Back
Top