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

Re: [PATCH v3] submodule: teach set-url subcommand

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 2, 2019, 04:25 UTC
Message-ID
<xmqqzhhe52hl.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20191030175817.GA5120@generichostname>
Denton Liu <liu.denton@gmail.com> writes:
> I think that the problem is that it's a common enough use-case but not
> common enough that people often forget to "sync" after editing the
> .gitmodules.

Which means that far from deprecating "sync", we should strive for imprinting the need for the use of the subcommand deeper in users' minds. I wonder if it makes sense to make sure that .gitmodules file starts with something like

	# Note that after updating this file, you may want to
	# run "git submodule sync" so that the URL for the remote
	# repository etc. are propagated down.

when we create it (via, say "git submodule add")? Or alternatively, warn the users when "git status" notices a local modification, or something along that line?

Previous: Denton Liu
Message 7 of 7 in “submodule: teach set-url subcommand”
  1. submodule: teach set-url subcommandDenton Liu, Sep 17, 2019
  2. submodule: teach set-url subcommandDenton Liu, Oct 29, 2019
  3. Danh DoanOct 29, 2019
  4. submodule: teach set-url subcommandDenton Liu, Oct 29, 2019
  5. Junio C HamanoOct 30, 2019
  6. Denton LiuOct 30, 2019
  7. Junio C HamanoNov 2, 2019

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.