News for hackers. Stuff that matters.
Re:Unix version control lore: what, ident by ggm on Monday May 13, 2024 @06:40PM (#40349415)
FreeBSD finally removed the last of the $Id$ in the source some months ago. I don't entirely know why they were so keen to do this but I'm sure they had a reason.

I don't see this, or binary .ident strings as e.g. clashing with idempotent builds.

Re:Unix version control lore: what, ident by HeadlessChild on Tuesday May 14, 2024 @10:51AM (#40355807)
Does anyone have information about these lines? Are they auto-generated?
Re:Unix version control lore: what, ident by njt on Tuesday May 14, 2024 @02:52PM (#40358717)
Both Subversion[1] and CVS[2] had keyword substitution, which replaced those tags with useful information like the commit id, author, date, etc.

They were very useful when you were looking at a source file, to see what version of that file you had.

Git had something similar with Git Attributes[3], but AFAIK, they were just references to blob ids, so they never really took off.

For git, I now use tags (and versioning based on tags), that more or less replaced svn/cvs keyword substitution in the git ecosystem.

[1] - https://svnbook.red-bean.com/en/1.7/svn.advanced.props.speci...

[2] - https://www.gnu.org/software/trans-coord/manual/cvs/html_nod...

[3] - https://git-scm.com/book/en/v2/Customizing-Git-Git-Attribute...

Re:Unix version control lore: what, ident by fanf2 on Tuesday May 14, 2024 @10:55AM (#40355857)
I gather it was because $FreeBSD$ stopped working with the move to git, so they removed it and its predecessors. (TBH the historical idents were not practically useful.) IMO it would be nice to at least retain a git hash in the kernel that can be found by what and ident.