What is the best way to import thousands of processing histories into my primary darktable database?

Yes - any solution - technical is fine. Scripting & git also fine.
Though to be honest - apart from pulling source from git from time-to-time; haven’t spent a lot of time with git. In a previous life used CVS and still do for linux config. I’ll read-up on git.