From: Johannes Sixt <j6t@kdbg.org>
To: Robert Buck <buck.robert.j@gmail.com>
Cc: git@vger.kernel.org, Joshua Jensen <jjensen@workspacewhiz.com>
Subject: Re: [PATCH 0/6] Extensions of core.ignorecase=true support
Date: Wed, 18 Aug 2010 20:31:09 +0200 [thread overview]
Message-ID: <201008182031.10197.j6t@kdbg.org> (raw)
In-Reply-To: <AANLkTi=Fkj-_-wHZN4GY2b+2n0mk7MKV=au0Hm4B+i9d@mail.gmail.com>
On Mittwoch, 18. August 2010, Robert Buck wrote:
> So apparently when core.ignorecase=true, this really means
> casepreserving=false, casesensitive=true.
No. When an entry enters the index from the worktree, an existing entry is
reused and the index entry's case is preserved, where existence is determined
in a case-insensitive manner[*]; if the entry is new, the case is preserved.
In the oppsite direction, case preservation depends entirely on the
capabilities of the file system.
[*] The new part of this series is that this case-insensitive existence test
happens on for the entire path, and not just the file name part.
> So what I am hearing is that unless one sets core.ignorecase, in mixed
> environments you are in for a world of hurt; you'd end up with Foo and
> foo from the Unix side of the house, and on Macs or Windows the last
> file materialized from the index or repository into the working
> directory would clobber the first one materialized,
core.ignorecase is not designed to help this case. It is a "Doctor, it hurts
when I poke myself in the eye" problem. Don't have both foo and Foo in your
repository if you go cross-platform. The git repository format is not
designed to treat them as identical, and no configuration option alters this.
-- Hannes
next prev parent reply other threads:[~2010-08-18 18:31 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-16 19:38 [PATCH 0/6] Extensions of core.ignorecase=true support Johannes Sixt
2010-08-16 19:38 ` [PATCH 1/6] Add string comparison functions that respect the ignore_case variable Johannes Sixt
2010-08-18 12:52 ` Ævar Arnfjörð Bjarmason
2010-08-18 12:53 ` Ævar Arnfjörð Bjarmason
2010-08-18 15:52 ` Joshua Jensen
2010-08-18 16:07 ` Ævar Arnfjörð Bjarmason
2010-08-18 18:32 ` Johannes Sixt
2010-08-18 18:58 ` Ævar Arnfjörð Bjarmason
2010-08-29 19:39 ` Ævar Arnfjörð Bjarmason
2010-08-30 14:42 ` Joshua Jensen
2010-08-30 14:51 ` Ævar Arnfjörð Bjarmason
2010-08-30 15:05 ` Jonathan Nieder
2010-08-30 14:52 ` Jonathan Nieder
2010-08-30 18:40 ` Johannes Sixt
2010-08-30 19:57 ` Ævar Arnfjörð Bjarmason
2010-08-30 20:13 ` Johannes Sixt
2010-08-16 19:38 ` [PATCH 2/6] Case insensitivity support for .gitignore via core.ignorecase Johannes Sixt
2010-08-16 19:38 ` [PATCH 3/6] Add case insensitivity support for directories when using git status Johannes Sixt
2010-08-16 19:38 ` [PATCH 4/6] Add case insensitivity support when using git ls-files Johannes Sixt
2010-08-16 19:38 ` [PATCH 5/6] Support case folding for git add when core.ignorecase=true Johannes Sixt
2010-08-16 19:38 ` [PATCH 6/6] Support case folding in git fast-import " Johannes Sixt
2010-08-17 19:36 ` [PATCH 0/6] Extensions of core.ignorecase=true support Robert Buck
2010-08-17 21:20 ` Johannes Sixt
2010-08-18 2:41 ` Robert Buck
2010-08-18 18:31 ` Johannes Sixt [this message]
2010-08-22 7:23 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008182031.10197.j6t@kdbg.org \
--to=j6t@kdbg.org \
--cc=buck.robert.j@gmail.com \
--cc=git@vger.kernel.org \
--cc=jjensen@workspacewhiz.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).