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

Re: mv/rm submodules

From
Jens Lehmann <jens.lehmann@web.de>
Date
Dec 9, 2013, 17:49 UTC
Message-ID
<52A602A2.6060909@web.de>
In-Reply-To
<CAByyCQCakKyUqJQDdFrTMf2CUJihRhqSUVCwT21VDN1EOerVWw@mail.gmail.com>
Am 09.12.2013 11:59, schrieb George Papanikolaou:
> I was just playing with the new features of 'git mv' in 1.8.5 and
> realized that both rm
> and mv don't change the .git/config file. Is that on purpuse?

Yes. Only the "path" entry in .gitmodules needs to be updated when a submodule is moved. Its name stays the same and thus the .git/config entry automatically applies to the new location.

> Also after mv you need to run 'submodule update' and I think this should be
> documented somewhere.

You're right, this should be mentioned in the mv man page. I'll prepare a patch for that.

Thanks for your feedback.
Previous: George PapanikolaouNext: Jens Lehmann
Message 2 of 8 in “mv/rm submodules”
  1. George PapanikolaouDec 9, 2013
  2. Jens LehmannDec 9, 2013
  3. mv: better document side effects when moving a submoduleJens Lehmann, Jan 6, 2014
  4. Junio C HamanoJan 6, 2014
  5. Jens LehmannJan 7, 2014
  6. 0/2 better document side effects when [re]moving a submoduleJens Lehmann, Jan 7, 2014
  7. 1/2 mv: better document side effects when moving a submoduleJens Lehmann, Jan 7, 2014
  8. 2/2 rm: better document side effects when removing a submoduleJens Lehmann, Jan 7, 2014

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.