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

git confused by rename

From
Michael P. Soulier <msoulier@digitaltorque.ca>
Date
Oct 10, 2008, 14:41 UTC
Message-ID
<fb6605670810100741k7cff25c7y4df66834cf7482a0@mail.gmail.com>

# On branch ajax-callrecording # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: js/urls.py # modified: js/views.py # modified: scrc/urls.py # modified: scrc/views.py # new file: templates/js/scrc.js # modified: templates/js/teleworker.js # renamed: templates/scrc/index.html -> templates/scrc/cres_taps.html # modified: templates/scrc/index.html

Looking at the last two lines here, there is obviously an issue.

I created a new cres_taps.html file, and modified the index.html file, and for some reason Git thinks that I renamed index.html.

Looks like a bug, unless I'm missing something.
Mike
-- 
Michael P. Soulier <msoulier@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein
Next: Junio C Hamano
Message 1 of 6 in “git confused by rename”
  1. Michael P. SoulierOct 10, 2008
  2. Junio C HamanoOct 10, 2008
  3. Junio C HamanoOct 10, 2008
  4. Björn SteinbrinkOct 10, 2008
  5. Michael P. SoulierOct 10, 2008
  6. git-status: Detect copies as well as renamesBjörn Steinbrink, Oct 10, 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.