summaryrefslogtreecommitdiff
path: root/git-gui/lib/branch_create.tcl
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-02-18 01:07:19 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-02-17 16:32:18 -0800
commit0ddf8ceac0b38c1ec89551c08dc49cb4b96c82bc (patch)
treedb80a08f13604a91d2ba89fc873c240933b78c05 /git-gui/lib/branch_create.tcl
parentThe eighth batch (diff)
downloadtgif-0ddf8ceac0b38c1ec89551c08dc49cb4b96c82bc.tar.xz
grep/pcre2: drop needless assignment + assert() on opt->pcre2
Drop an assignment added in b65abcafc7a (grep: use PCRE v2 for optimized fixed-string search, 2019-07-01) and the overly cautious assert() I added in 94da9193a6e (grep: add support for PCRE v2, 2017-06-01). There was never a good reason for this, it's just a relic from when I initially wrote the PCREv2 support. We're not going to have confusion about compile_pcre2_pattern() being called when it shouldn't just because we forgot to cargo-cult this opt->pcre2 option. Furthermore the "struct grep_opt" is (mostly) used for the options the user supplied, let's avoid the pattern of needlessly assigning to it. With my recent removal of the PCREv1 backend in 7599730b7e2 (Remove support for v1 of the PCRE library, 2021-01-24) there's even less confusion around what we call where in these codepaths, which is one more reason to remove this. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/branch_create.tcl')
0 files changed, 0 insertions, 0 deletions