Re: [PATCH 0/6] Extensions of core.ignorecase=true support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Buck
Date: Tuesday, August 17, 2010 - 12:36 pm

While I tend to agree with case-insensitive searches, I would tend to
question the use of a non-case-preserving / last-use methodology
reminiscent of the days of DOS. I was never terribly fond of DOS nor
of Windows for Workgroups, and this change smacks of that. That said,
as an algorithm it is one legitimate option, I just would not tend to
use it.

Have you thought of other approaches that are case-preserving /
case-insensitive (modern Windows implementations and Mac OS X) or of
case-sensitive (UNIX)? What about giving the user the choice?

Looking back at how flexible and simple folks here on this list made
the EOL support (the best I have seen to date) what if you followed a
similar approach and provided the flexibility to the users by giving
the options to control the behavior themselves, then fall back to
reasonable defaults if left unspecified?

I would imagine having two properties would be somewhat more useful:

core.casepreserving=true|false
core.caseinsensitive=true|false

For Unix-centric environments the defaults would be true & false,
respectively. For mixed Windows/Unix environments users would
configure it as true & true. A combination of false & true,
respectively, would be appropriate for DOS users, but this may be
another option for mixed environments. A combination of false & false
would be impossible by definition.

What this would mean is that searches in the purely Unix world would
store and match sensitively; but in such an environment there may be
issues should any Windows users attempt to work with the repository if
two files having a similar names existed. For Windows users the last
read operation would overwrite the first (not a good thing).

For mixed configurations there are two options, the Windows/Mac
option, and the DOS option.

The nice thing about case-insensitivity is that when requesting a file
by name any capitalization can be used. The bad thing, well come to
think of it, there is none that I can think of, but for those more
religious than I about Unix they may cite otherwise.

-Bob

On Mon, Aug 16, 2010 at 3:38 PM, Johannes Sixt <j6t@kdbg.org> wrote:
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/6] Extensions of core.ignorecase=true support, Johannes Sixt, (Mon Aug 16, 12:38 pm)
Re: [PATCH 0/6] Extensions of core.ignorecase=true support, Robert Buck, (Tue Aug 17, 12:36 pm)
Re: [PATCH 1/6] Add string comparison functions that respe ..., Ævar Arnfjörð Bjarmason, (Wed Aug 18, 5:52 am)
Re: [PATCH 1/6] Add string comparison functions that respe ..., Ævar Arnfjörð Bjarmason, (Wed Aug 18, 5:53 am)
Re: [PATCH 1/6] Add string comparison functions that respe ..., Ævar Arnfjörð Bjarmason, (Wed Aug 18, 9:07 am)
Re: [PATCH 0/6] Extensions of core.ignorecase=true support, Johannes Sixt, (Wed Aug 18, 11:31 am)
Re: [PATCH 1/6] Add string comparison functions that respe ..., Ævar Arnfjörð Bjarmason, (Wed Aug 18, 11:58 am)
Re: [PATCH 0/6] Extensions of core.ignorecase=true support, Junio C Hamano, (Sun Aug 22, 12:23 am)
Re: [PATCH 1/6] Add string comparison functions that respe ..., Ævar Arnfjörð Bjarmason, (Sun Aug 29, 12:39 pm)
Re: [PATCH 1/6] Add string comparison functions that respe ..., Ævar Arnfjörð Bjarmason, (Mon Aug 30, 7:51 am)
Re: [PATCH 1/6] Add string comparison functions that respe ..., Ævar Arnfjörð Bjarmason, (Mon Aug 30, 12:57 pm)