Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2021 09:26:42 +0100
From:      Daniel Ebdrup Jensen <debdrup@FreeBSD.org>
To:        dev-commits-doc-all@FreeBSD.org
Subject:   Re: git: fb36cfdfb2 - main - Add gitref macro to reference a git hash
Message-ID:  <20210214082642.fxqkrrfc74dfhjwq@nerd-thinkpad.local>
In-Reply-To: <202102132122.11DLMjKB065979@gitrepo.freebsd.org>
References:  <202102132122.11DLMjKB065979@gitrepo.freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sat, Feb 13, 2021 at 09:22:45PM +0000, Sergio Carlavilla Delgado wrote:
>The branch main has been updated by carlavilla:
>
>URL: https://cgit.FreeBSD.org/doc/commit/?id=fb36cfdfb2dd5e9ebe217d820609d96fb73d8cc8
>
>commit fb36cfdfb2dd5e9ebe217d820609d96fb73d8cc8
>Author:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
>AuthorDate: 2021-02-13 21:16:57 +0000
>Commit:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
>CommitDate: 2021-02-13 21:22:34 +0000
>
>    Add gitref macro to reference a git hash
>
>    With this extension a git hash can be easily referenced.
>
>    The porters handbook versions chapter uses this extension
>    as an example in the FreeBSD 14.0 version table.
>
>    An example of use
>
>    gitref:hash[repository="src|doc|ports",length=hash-longitude]
>
>    The repository should be src, doc or ports.
>    And if no length it's specified the macro will use 12 characters
>    of the specified hash.
>
>    PR:             253050
>    Submitted by:   jhb@
>---
> documentation/config/_default/config.toml          |  2 +-
> .../books/porters-handbook/versions/chapter.adoc   |  8 +++----
> shared/lib/GitReferencesMacro/extension.rb         | 25 ++++++++++++++++++++++
> shared/lib/git-macro.rb                            |  5 +++++
> website/config/_default/config.toml                |  2 +-
> 5 files changed, 36 insertions(+), 6 deletions(-)
>

Hi folks,

It appears that there are multiple ways of going about things, because I 
implemented this via shortcodes in commit 5476df45eb06, but this is 
clearly the superior solution.

I'll revert what I added, when I do a pass on the release notes, which 
I'll go do now. :)

Yours,
Daniel Ebdrup Jensen

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQGTBAABCgB9FiEEDonNJPbg/JLIMoS6Ps5hSHzN87oFAmAo3sJfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDBF
ODlDRDI0RjZFMEZDOTJDODMyODRCQTNFQ0U2MTQ4N0NDREYzQkEACgkQPs5hSHzN
87pSFAgApIwJeaM1rCgSxhWi7etzvjODLfsU0BnfnFpVci7bhslbcvJkAohW6Obv
f41dF8IP5XWT5/G7rYNpAKDiLVYvFyZzg+SArwU35ZennLRrPEAC9dV6dS0RuX9C
Z3T4FAbGL4I0wmQsBJhuJYto8wI8rO0OhTV9OuobPFJoFCCqYbqsUzFNrnPsKegb
aeObLChMzrU5AwGWkwjYE3E40vkLMNIvkbqBCkMG718SojOByKaxnvUcu4I8CD5f
ruHjcld5ufYEhOAL9LteSa1BNYGanZfE1rZXagWz840rkkh+uzBynz1Z+Eh/o7Kz
wSBAYZElZyJx0gQ3WvqNLC2iM12Euw==
=hslZ
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210214082642.fxqkrrfc74dfhjwq>