]> git.ipfire.org Git - thirdparty/git.git/commit - git-p4.py
git-p4: simplify regex pattern generation for parsing diff-tree
authorYang Zhao <yang.zhao@skyboxlabs.com>
Fri, 13 Dec 2019 23:52:46 +0000 (15:52 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Jan 2020 20:53:40 +0000 (12:53 -0800)
commitce425eb4e16e5038ffc322cbafc80d641b0ad5eb
treef44e17fb001d8d1b99fae4658d3242c056d8624d
parent2e2aa8d9032ccdfdecaab51c60c5bada517f60bc
git-p4: simplify regex pattern generation for parsing diff-tree

It is not clear why a generator was used to create the regex used to
parse git-diff-tree output; I assume an early implementation required
it, but is not part of the mainline change.

Simply use a lazily initialized global instead.

Signed-off-by: Yang Zhao <yang.zhao@skyboxlabs.com>
Reviewed-by: Ben Keene <seraphire@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py