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?