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

move directories in work dir

From
RJRogelio M. Serrano Jr. <rogelio@smsglobal.net>
Date
Oct 23, 2005, 05:44 UTC
Message-ID
<6f22540448f7234336a00bce5b6547b6@Splinter>
Hi,

Sorry for asking but is there a way to tell git that i moved a directory into another? For example i have.

analyse analyse/import_a analyse/import_a/Rules.mk analyse/import_a/import_a.c analyse/import_b analyse/import_b/Rules.mk analyse/import_b/import_b.c

i make a new dir analyse/import_tools

then move import_a and import_b in there and end up with:

analyse analyse/import_tools/import_a analyse/import_tools/import_a/Rules.mk analyse/import_tools/import_a/import_a.c analyse/import_tools/import_b analyse/import_tools/import_b/Rules.mk analyse/import_tools/import_b/import_b.c

right now i have to do git-update-index --add for everything all over again.

Next: Junio C Hamano
Message 1 of 5 in “move directories in work dir”
  1. Rogelio M. Serrano Jr.Oct 23, 2005
  2. Junio C HamanoOct 23, 2005
  3. Rogelio M. Serrano Jr.Oct 23, 2005
  4. Add support for renaming multiple items at once, and for the destination to be a directory.Ryan Anderson, Oct 31, 2005
  5. Peter EriksenOct 31, 2005

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.