Short answer is to gitignore such files: those templates get automatically generated at boot time by instances of ::xowiki::ADP_Generator class [1].
Such class is implemented in packages/xowiki/tcl/adp-generator-procs.tcl
If you don't have precious customizations in merging template files this is as far as it goes.
[1] https://openacs.org/xotcl/show-object?show_methods=1&show_source=0&object=::xowiki::ADP_Generator