The "--add-virtual-file" option of "git archive", added primarily to help "git diagnose", has always ignored the "--prefix", but been documented to honor it.
Iffy if updating the implementation is the best approach. cf. mailto:bc3711a7-37d5-46bc-979e-83bd0b2cf900@web.de source: mailto:pull.1719.v2.git.git.1715967267420.gitgitgadget@gmail.com