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

Re: How to commit removed file?

From
Junio C Hamano <junkio@cox.net>
Date
Jan 3, 2007, 06:51 UTC
Message-ID
<7vhcv8r4ac.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070103060640.GD20259@mellanox.co.il>
"Michael S. Tsirkin" <mst@mellanox.co.il> writes:
Show 5 quoted lines
> But won't the same problem appear with
>
> rm file
> git-update-index file
> git-commit file

If you do index manipulation yourself using update-index, do not jump the index at the commit time using "git commit file..." syntax; the sole purpose of that misfeature is to handhold CVS-braindamaged people who want to make per-path partial commits.

We bend backwards to allow index-jumping for most cases in git-commit, and you found that "most" is not "all". That's a great news.

I am not interested to make it "all" myself -- if somebody else does it, that is fine, though ;-).

Previous: Michael S. TsirkinNext: Junio C Hamano
Message 13 of 16 in “How to commit removed file?”
  1. Michael S. TsirkinDec 31, 2006
  2. Johannes SchindelinDec 31, 2006
  3. Michael S. TsirkinJan 2, 2007
  4. Johannes SchindelinJan 2, 2007
  5. Junio C HamanoJan 2, 2007
  6. Jakub NarebskiJan 2, 2007
  7. Johannes SchindelinJan 2, 2007
  8. Carl WorthJan 3, 2007
  9. Junio C HamanoJan 6, 2007
  10. Carl WorthJan 12, 2007
  11. Jakub NarebskiJan 12, 2007
  12. Michael S. TsirkinJan 3, 2007
  13. Junio C HamanoJan 3, 2007
  14. Junio C HamanoJan 3, 2007
  15. Michael S. TsirkinJan 4, 2007
  16. Juergen RuehleJan 2, 2007

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.