From: Luke Diamand <luke@diamand.org>
To: Mike Hommey <mh@glandium.org>, Junio C Hamano <gitster@pobox.com>
Cc: "Torsten Bögershausen" <tboegi@web.de>,
git@vger.kernel.org, "Joshua Jensen" <jjensen@workspacewhiz.com>,
"Jonathan Nieder" <jrnieder@gmail.com>
Subject: Re: [PATCH] fast-import: add options to enable/disable case folding
Date: Fri, 24 Apr 2015 10:42:14 +0100 [thread overview]
Message-ID: <553A0FF6.6070700@diamand.org> (raw)
In-Reply-To: <20150418073611.GA13410@glandium.org>
On 18/04/15 08:36, Mike Hommey wrote:
> On Fri, Apr 17, 2015 at 11:44:00AM -0700, Junio C Hamano wrote:
>> So perhaps we should rip the case folding out altogether instead?
>> The entry for the change in the Release Notes may say:
>>
>> * "git fast-import" incorrectly case-folded the paths recorded in
>> the history when core.ignorease is set (i.e. the repository's
>> working tree is incapable of expressing paths that differ only in
>> their cases); this old bug was reported in 2012 and was finally
>> corrected.
>>
>> or something like that?
>
> Is anything else then git-p4 known to rely on case folding? If not, I
> guess that's a reasonable plan. We could even add an option to
> fast-import that would allow to turn case folding back on, and make
> git-p4 use it, so that its expectations are fulfilled. Although at some
> point, it could (should?) do case folding itself(?)
git-p4 has a single line of code that checks if core.ignorecase is
turned on, and uses this to decide whether to skip files that are
outside the depot being tracked and I *think* is not really related to
fast-import.
I don't know to what extent though git-p4 relies on the current
behaviour of git fast-import to fold case for it.
There's a 'p4 info' command which tells you what the server thinks it's
doing:
$ p4 info | grep Case
Case Handling: sensitive
I don't know how long that support has been present (it might not work
on older servers that some people are still using).
It's also possible to force the server to be case-insensitive on the
Linux version. That's useful, as it we could construct some test cases
to see what we're likely to break without having to force people to
install a case-insensitive OS in order to run the git regression tests.
Luke
>
> Mike
> --
> 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
>
next prev parent reply other threads:[~2015-04-24 9:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-09 0:12 fast-import should not care about core.ignorecase Mike Hommey
2014-12-09 0:22 ` Mike Hommey
2014-12-09 1:07 ` Joshua Jensen
2014-12-09 1:31 ` Jonathan Nieder
2014-12-09 3:20 ` Joshua Jensen
2014-12-09 20:19 ` Junio C Hamano
2015-04-17 11:52 ` [PATCH] fast-import: add options to enable/disable case folding Mike Hommey
2015-04-17 16:56 ` Torsten Bögershausen
2015-04-17 18:44 ` Junio C Hamano
2015-04-18 7:36 ` Mike Hommey
2015-04-24 9:42 ` Luke Diamand [this message]
2015-04-17 19:57 ` Eric Sunshine
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=553A0FF6.6070700@diamand.org \
--to=luke@diamand.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jjensen@workspacewhiz.com \
--cc=jrnieder@gmail.com \
--cc=mh@glandium.org \
--cc=tboegi@web.de \
/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).