replacement for ident(1)
Dan Langille
dan at langille.org
Thu Feb 25 13:20:05 UTC 2021
Post git, what do we use instead of ident(1)?
>From https://www.freebsd.org/cgi/man.cgi?query=ident&sektion=1
NAME
ident -- identify RCS keyword string in files
Example, pertinent to my use case:
$ ident security/vuxml/vuln.xml
security/vuxml/vuln.xml:
$FreeBSD: head/security/vuxml/vuln.xml 566520 2021-02-25 02:33:12Z philip $
Here is the 15-year old code which uses it:
https://gist.github.com/dlangille/c7aee2ce3a717443d73e3d7f86a74130
Those four bits of information are used here:
https://www.freshports.org/vuxml.php?all
e.g.
The last vuln.xml file processed by FreshPorts is:
Revision: 566519
Date: 2021-02-25
Time: 02:33:09Z
Committer: philip
I could extract this separately during each commit of security/vuxml but wanted to check if there was another way first.
Thank you.
--
Dan Langille
dan at langille.org
More information about the freebsd-git
mailing list