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

Re: BUG FOLLOWUP: Case insensitivity in worktrees

From
CMCasey Meijer <cmeijer@strongestfamilies.com>
Date
Jul 23, 2020, 15:20 UTC
Message-ID
<8BABB6F0-517F-4AA0-9FF9-92AF8C33CD0E@strongestfamilies.com>
In-Reply-To
<EEA65ED1-2BE0-41AD-84CC-780A9F4D9215@strongestfamilies.com>
This just bit me; it seems quite old, and I wanted to propose an alternative solution (maybe it doesn’t work for some reason I’m unaware of):
https://marc.info/?l=git&m=154473525401677&w=2
 
Why not just preserve the existing semantics of the main worktree by checking the worktree refs first unconditionally and only fall back to the main refs when the ref doesn’t exist locally in the worktree?
 
This would have the added benefit of allowing power users to override refs in their worktrees and would, if I’m not mistaken, preserve the semantics of the main worktree in case-insensitive and case-sensitive filesystems. 
 
Anywho, just a thought.  I could work on a patch if this approach makes sense at least as an intermediary until there’s a pluggable storage backend for non-FS stores 😉   (I'd also be somewhat interested in implementing a postgres/sql storage backend if this project is moving forwards __ ).
 
 
Best,
 
Casey Meijer
Next: brian m. carlson
Message 1 of 8 in “Re: BUG FOLLOWUP: Case insensitivity in worktrees”
  1. Casey MeijerJul 23, 2020
  2. brian m. carlsonJul 24, 2020
  3. Junio C HamanoJul 24, 2020
  4. Casey MeijerJul 24, 2020
  5. Casey MeijerJul 24, 2020
  6. Junio C HamanoJul 24, 2020
  7. Casey MeijerJul 24, 2020
  8. brian m. carlsonJul 24, 2020

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.