]> git.ipfire.org Git - thirdparty/git.git/commit - diffcore-pickaxe.c
diffcore-pickaxe: support case insensitive match on non-ascii
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 25 Jun 2016 05:22:37 +0000 (07:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Jul 2016 19:44:57 +0000 (12:44 -0700)
commitb51a9c1479645b3e0c7d5156d027a97a4bb87977
treefb79a6624e86caa00db1a4b984e392d0ac66423e
parent3d5b23a36218b0417a056fa7b5e6d25d595ccaf2
diffcore-pickaxe: support case insensitive match on non-ascii

Similar to the "grep -F -i" case, we can't use kws on icase search
outside ascii range, so we quote the string and pass it to regcomp as
a basic regexp and let regex engine deal with case sensitivity.

The new test is put in t7812 instead of t4209-log-pickaxe because
lib-gettext.sh might cause problems elsewhere, probably.

Noticed-by: Plamen Totev <plamen.totev@abv.bg>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diffcore-pickaxe.c
t/t7812-grep-icase-non-ascii.sh