Git needs to track software licenses on a per commit basis.
There are a lot of other different metadata that you could imagine to store per commit, but git already supports storing arbitrary data in every commit, you don’t need special casing for some type of metadata, just store it in the commmit as everyone already does, and perhaps build your own tools on top of that if you have special needs.
Co-Authored-By: Whatever LLM
License: WTFPL