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

Re: Bug: Git rename does not work if folder naming was changed from lower to upper case on OSX

From
Kevin Daudt <me@ikke.info>
Date
May 1, 2017, 17:07 UTC
Message-ID
<20170501170714.GA17703@alpha.vpn.ikke.info>
In-Reply-To
<xmqqshkpic0e.fsf@gitster.mtv.corp.google.com>
On Sun, Apr 30, 2017 at 06:47:29PM -0700, Junio C Hamano wrote:
Show 11 quoted lines
> Kevin Daudt <me@ikke.info> writes:
> 
> > Note that git does not store that files are renamed. So a remove + add
> > is the same as a rename in git. Only git status shows it when you for
> > example use git mv directly, but this information is lost on commit.
> 
> Are you sure about the last sentence?  I do not recall teaching
> anything special to "git status".  If "git status" says A was
> created by renaming B, and if you committed that state was-is, "git
> show" on the result commit _should_ say the same thing, I would
> think.

Yes, of course, you are right. Git status also detects a file being renamed instead of relying on it being recorded.

Show 5 quoted lines
> 
> > Instead of storing it get relies on detecting what (parts of ) files got
> > renamed, copied etc.
> 
> That statement I belieave is true.
Why are you reserved here?
Kevin.
Previous: Junio C Hamano
Message 5 of 5 in “Bug: Git rename does not work if folder naming was changed from lower to upper case on OSX”
  1. Robert EiseleApr 29, 2017
  2. Torsten BögershausenApr 29, 2017
  3. Kevin DaudtApr 29, 2017
  4. Junio C HamanoMay 1, 2017
  5. Kevin DaudtMay 1, 2017

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.