Re: [PATCH v2 00/12] nd/icase updates
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 1, 2016, 18:18 UTC
- Message-ID
- <xmqq4m89z0gl.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CACsJy8BU0fDVR54hMpA6qVknj+QxWR9Z-i1gRgpaJ6hp+SB2xQ@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> 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?