git-p4: pre-compile RCS keyword regexes
commite665e98ec1d1558a55a3e7e5fd5e88d70396ec96
authorJoel Holdsworth <jholdsworth@nvidia.com>
Thu, 16 Dec 2021 13:46:16 +0000 (16 13:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Dec 2021 22:06:35 +0000 (16 14:06 -0800)
tree02adfeb2df110900609c39445b3b62bb58d9e669
parent8618d322e00f88b7b5528abfc75b26c162032a21
git-p4: pre-compile RCS keyword regexes

Previously git-p4.py would compile one of two regular expressions for
ever RCS keyword-enabled file. This patch improves simplifies the code
by pre-compiling the two regular expressions when the script first
loads.

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py