From: Junio C Hamano <gitster@pobox.com>
To: Dun Peal <dunpealer@gmail.com>
Cc: Git ML <git@vger.kernel.org>
Subject: Re: Why don't git-init and git-clone probe for core.ignorecase on Windows > XP?
Date: Fri, 07 Jan 2011 12:18:28 -0800 [thread overview]
Message-ID: <7voc7s5uy3.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <AANLkTimqgCsmC96fkWQJ0yB+FuyC6Xkgn3UAfZrqMqK_@mail.gmail.com> (Dun Peal's message of "Fri\, 7 Jan 2011 12\:34\:35 -0600")
Dun Peal <dunpealer@gmail.com> writes:
> The git-config manpage says about core.ignorecase:
>
> "The default is false, except git-clone(1) or git-init(1) will probe
> and set core.ignorecase true if appropriate when the repository is
> created."
>
> I assume this is happening when you clone or init on FAT, which is
> explicitly mentioned earlier in that section. But apparently it
> doesn't happen for either XP, Vista or 7. While those newer releases
> use NTFS, which technically supports case-sensitivity, the operating
> itself still apparently doesn't, so it would seem like git-clone and
> git-init should probe regarding the core.ignorecase on any version of
> Windows, no?
Sorry, but it is unclear if you are complaining that core.ignorecase is
set (but you believe it shouldn't be) or it is not set (but you believe it
should be) on NTFS from the description.
As far as I can tell from the code (I obviously only look at the plain
vanilla git, and msysgit might have some patch to this part, I dunno. Oh
by the way you didn't say which version you are complaining about,
either), we do the probing on all systems (including POSIX folks with FAT
filesystem mounted) by first creating .git/config and then checking if a
file .git/CoNfIg which we know we never created can be accessed. If we
can, that means the filesystem ignores case, iow, we cannot have two files
config and CoNfIg at the same time, and set core.ignorecase to true.
next prev parent reply other threads:[~2011-01-07 20:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 18:34 Why don't git-init and git-clone probe for core.ignorecase on Windows > XP? Dun Peal
2011-01-07 20:18 ` Junio C Hamano [this message]
2011-01-24 21:15 ` Dun Peal
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=7voc7s5uy3.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=dunpealer@gmail.com \
--cc=git@vger.kernel.org \
/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