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

Re: Cygwin: problem with renaming and case

From
Avery Pennarun <apenwarr@gmail.com>
Date
Mar 21, 2008, 17:57 UTC
Message-ID
<32541b130803211057h22310557ne605e39e6b894e11@mail.gmail.com>
In-Reply-To
<alpine.LFD.1.00.0803211037160.3020@woody.linux-foundation.org>

On Fri, Mar 21, 2008 at 1:46 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:

Show 5 quoted lines
>  Now, you're tracking "Aaa.txt" in the branch you're leaving, and git knows
>  that, but git also knows that the branch you're leaving is *not* tracking
>  "aaa.txt", so obviously the copy of "aaa.txt" that the filesystem reports
>  is not saved anywhere, and git says "I refuse to overwrite it, because
>  that would destroy your untracked content".

I don't know if this helps, but if git would delete the files it's planning to forget before checking the existence of files it's planning to create, case sensitivity problems like these would automatically disappear and you wouldn't have to worry about case (and accent, and and...) folding by hand.

Unfortunately, that would mean git is changing things around before it can safely make a decision about whether that's a good idea. That said, it would be possible to put things back, since it knows the files it deleted are stored safely in the original branch anyway.

Have fun,
Avery
Previous: Linus TorvaldsNext: Linus Torvalds
Message 3 of 11 in “Cygwin: problem with renaming and case”
  1. FrankMar 21, 2008
  2. Linus TorvaldsMar 21, 2008
  3. Avery PennarunMar 21, 2008
  4. Linus TorvaldsMar 21, 2008
  5. Junio C HamanoMar 22, 2008
  6. Steffen ProhaskaMar 22, 2008
  7. Dmitry PotapovMar 21, 2008
  8. streamlake@tiscali.itMar 21, 2008
  9. Brian DessentMar 21, 2008
  10. Nagy BalázsMar 22, 2008
  11. Linus TorvaldsMar 22, 2008

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.