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

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

From
Lars Schneider <larsxschneider@gmail.com>
Date
Aug 25, 2015, 08:17 UTC
Message-ID
<E4AEC9F5-F86A-42FE-A893-E0238AA8E662@gmail.com>
In-Reply-To
<55DC111A.6090501@diamand.org>
On 25 Aug 2015, at 08:54, Luke Diamand <luke@diamand.org> wrote:
Show 14 quoted lines
> On 24/08/15 22:30, larsxschneider@gmail.com wrote:
>> From: Lars Schneider <larsxschneider@gmail.com>
>> 
>> Thanks to Luke Diamand I realized the core problem and propose here a
>> substiantially simpler fix to my PATCH v4.
>> 
>> The test cases remain and prove the problem. In particular
>> "8 - Clone path (ignorecase)" and
>> "Add a new file and clone path with new file (ignorecase)" fail with the
>> current implementation on OS X and Linux.
> 
> That's a lot simpler, thanks!
> 
> Could we give this its own command line option and git config variable?
Can you outline the command line option you have in mind?
> 
> Core.ignorecase gets set if the client is on a filing system that ignores case. This is slightly different - it squashes case in depot files for people with depots that have incorrectly jumbled-up case.
Well, you can’t tell if the depots have incorrectly jumbled-up case. It could be intentional after all. Therefore I believe the “ignorecase” flag is a good fit because we explicitly state that we are not interested in case sensitivity on the client.
Show 18 quoted lines
> Conflating the two seems like it would cause confusion at some point - for example, I have no idea how the rest of git behaves if core.ignorecase is set to True on a case-preserving file system.
> 
> It would probably be necessary to change p4PathStartsWith() to also check the same flag.
> 
> 
>> 
>> Lars Schneider (1):
>>   git-p4: Obey core.ignorecase when using P4 client specs.
>> 
>>  git-p4.py                         |   7 ++
>>  t/t9821-git-p4-path-variations.sh | 200 ++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 207 insertions(+)
>>  create mode 100755 t/t9821-git-p4-path-variations.sh
>> 
>> --
>> 1.9.5 (Apple Git-50.3)
>> 
> 
Previous: Luke DiamandNext: Torsten Bögershausen
Message 4 of 10 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 24, 2015
  2. git-p4: Obey core.ignorecase when using P4 client specs.larsxschneider@gmail.com, Aug 24, 2015
  3. Luke DiamandAug 25, 2015
  4. Lars SchneiderAug 25, 2015
  5. Torsten BögershausenAug 25, 2015
  6. Lars SchneiderAug 25, 2015
  7. Luke DiamandAug 25, 2015
  8. Lars SchneiderAug 25, 2015
  9. Luke DiamandAug 25, 2015
  10. Luke DiamandAug 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.