git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v6] git-p4: Obey core.ignorecase when using P4 client specs.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 26, 2015, 21:48 UTC
Message-ID
<xmqqsi75202l.fsf@gitster.dls.corp.google.com>
In-Reply-To
<4CB47914-F04C-4E88-8D73-E00AFEFEF727@gmail.com>
Lars Schneider <larsxschneider@gmail.com> writes:
Show 16 quoted lines
> On 26 Aug 2015, at 22:05, Junio C Hamano <gitster@pobox.com> wrote:
>
>> larsxschneider@gmail.com writes:
>> 
>>> From: Lars Schneider <larsxschneider@gmail.com>
>>> 
>>> We run P4 servers on Linux and P4 clients on Windows. For an unknown
>>> reason the file path for a number of files in P4 does not match the
>>> directory path with respect to case sensitivity.
>> 
>> Thanks, but is this still "For an unknown reason", or during the
>> course of debugging you found the root cause, which is what led to
>> this fix?
> We are migrating away from P4 and therefore I haven’t debugged the
> root cause. The source of this problem is 100% P4 related. No Git
> involvement at all. Maybe I just remove this paragraph?

Perhaps. If it is irrelevant how the P4 depot ended up recording the paths in mixed cases, then we can just say that as a prerequiste condition to trigger the problem.

Perhaps rephrase the entire thing like this?
    Perforce depot may record paths in mixed cases, e.g. "p4 files" may
    show that there are these two paths:
        //depot/path/to/file1
        //depot/pATH/to/file2
    and with "p4" or "p4v", these end up in the same directory, e.g.
        //depot/path/to/file1
        //depot/path/to/file2
    which is the desired outcome on case insensitive systems.
    If git-p4 is used with client spec "//depot/path/...", however, then
    all files not matching the case in the client spec are ignored (in
    the example above "//depot/pATH/to/file2").
    Fix this by downcasing the depot_path when core.ignorcase is set to
    true.
Thanks.
Previous: Lars Schneider
Message 4 of 4 in “git-p4: Obey core.ignorecase when using P4 client specs.”
  1. git-p4: Obey core.ignorecase when using P4 client specs.larsxschneider@gmail.com, Aug 26, 2015
  2. Junio C HamanoAug 26, 2015
  3. Lars SchneiderAug 26, 2015
  4. Junio C HamanoAug 26, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.