Re: [PATCH v2 00/12] nd/icase updates

2 messages, 2 authors, 2016-07-01 · open the first message on its own page

Re: [PATCH v2 00/12] nd/icase updates

From: Junio C Hamano <hidden>
Date: 2016-07-01 18:19:25

Duy Nguyen [off-list ref] writes:
Makes sense. But then if opt->ignore_case is false and regflags
happens to have REG_ICASE set, should we clear it as well?
I think .ignore_case is set iff '-i' is given, and .regflags has
REG_ICASE only if '-i' is given and the user said she does not want
literal string match (i.e. no '-F').

So... can .regflags have REG_ICASE when .ignore_case is false?

Re: [PATCH v2 00/12] nd/icase updates

From: Duy Nguyen <hidden>
Date: 2016-07-01 18:48:03

On Fri, Jul 1, 2016 at 8:18 PM, Junio C Hamano [off-list ref] wrote:
Duy Nguyen [off-list ref] writes:
quoted
Makes sense. But then if opt->ignore_case is false and regflags
happens to have REG_ICASE set, should we clear it as well?
I think .ignore_case is set iff '-i' is given, and .regflags has
REG_ICASE only if '-i' is given and the user said she does not want
literal string match (i.e. no '-F').

So... can .regflags have REG_ICASE when .ignore_case is false?
Yeah reg_icase is more like a subset of ignore_case. Ignore what I wrote.
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help