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

Moving a directory into another fails

From
Jon Smirl <jonsmirl@gmail.com>
Date
Jul 26, 2006, 15:00 UTC
Message-ID
<9e4733910607260800v618edf0em7b0f5c3332bf8fc5@mail.gmail.com>

I cloned a git project. Then in the original I did mkdir for a new directory and use git mv to move an existing directory into it. I then used cg diff to generate a patch for the move.

When I use cg patch to apply this patch to the cloned tree it fails. This seems to be a problem in the git code, not cg. It is not picking up the creation of the new intervening subdirectory correctly.

I just synced and this does not work in the current code.
-- 
Jon Smirl
jonsmirl@gmail.com
Next: Nicolas Vilz
Message 1 of 24 in “Moving a directory into another fails”
  1. Jon SmirlJul 26, 2006
  2. Nicolas VilzJul 26, 2006
  3. Jon SmirlJul 26, 2006
  4. Nicolas VilzJul 26, 2006
  5. Petr BaudisJul 28, 2006
  6. Stefan PfetzingDec 4, 2006
  7. Jakub NarebskiDec 4, 2006
  8. Johannes SchindelinDec 4, 2006
  9. Jakub NarebskiDec 4, 2006
  10. Johannes SchindelinDec 4, 2006
  11. Jakub NarebskiDec 4, 2006
  12. Linus TorvaldsDec 4, 2006
  13. Linus TorvaldsDec 4, 2006
  14. Shawn PearceDec 4, 2006
  15. Jakub NarebskiDec 4, 2006
  16. Johannes SchindelinDec 4, 2006
  17. Linus TorvaldsDec 4, 2006
  18. Johannes SchindelinDec 5, 2006
  19. Jakub NarebskiDec 5, 2006
  20. filesystem encodings and gitweb tests, was Re: Moving a directory into another failsJohannes Schindelin, Dec 5, 2006
  21. Jakub NarebskiDec 5, 2006
  22. Johannes SchindelinDec 5, 2006
  23. Linus TorvaldsDec 5, 2006
  24. Johannes SchindelinDec 4, 2006

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.