I don’t think the Git maintainers will consider adding Go as a dependency and having commands in a new language.
Or at least, it would require first a massive effort to align the maintainers on the idea of a new language, like Rust in the Linux kernel
Or just improve the Perl version? There's no reason this needs to be written in Go.
> I don’t think the Git maintainers will consider adding Go as a dependency
Just re-write in C
This "just" carries a lot of weight.
And that's probably not enough: for example likely you'd need to reuse whatever Git uses to generates patch formats. It's not necessarily _hard_, but it's not "just" a language translation.
Maybe someone will create modernperl, à la modernc, to automatically port go to perl.