This might be way off ... is there a possibility for adding a checkin hook in git? This would feel like the natural place for doing stuff like replacing RCS tags - and you wouldn't have to worry about finding all the files and such.
in reply to replacing rcs tags in perl
Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.