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

Re: git-submodule.sh respects submodule.$name.update in .git/config but not .gitmodules

From
W. Trevor King <wking@tremily.us>
Date
Dec 12, 2013, 19:14 UTC
Message-ID
<20131212191429.GI25409@odin.tremily.us>
In-Reply-To
<52AA072F.2000105@web.de>
On Thu, Dec 12, 2013 at 07:57:51PM +0100, Jens Lehmann wrote:
Show 12 quoted lines
> Am 12.12.2013 02:16, schrieb Junio C Hamano:
> > I think the solution we want is to copy only minimum to the config
> > (and that "minimum" may turn out to be "nothing"), and to default
> > keys that are only absolutely safe to .gitmodules file.
> 
> I agree and will prepare a patch for that.
> 
> What about teaching "git submodule sync" the "--url", "--update",
> "--fetch", "--ignore", "--branch" and "--all" options to allow the
> user to copy the current settings he wants from .gitmodules to
> .git/config (but only safe values of course)? Trevor, would you be
> ok to issue another command to copy everything to .git/config?

Sounds good to me. The more stuff I can leave in .gitmodules, the happier I'll be ;). My second step will be removing “unsafe” values from .git/config where possible, and I'll trust myself to check .gitmodules after pulls.

Cheers, Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
Previous: Jens LehmannNext: Jonathan Nieder
Message 8 of 10 in “git-submodule.sh respects submodule.$name.update in .git/config but not .gitmodules”
  1. Charlie DysonDec 6, 2013
  2. Heiko VoigtDec 9, 2013
  3. Junio C HamanoDec 9, 2013
  4. Jens LehmannDec 11, 2013
  5. W. Trevor KingDec 11, 2013
  6. Junio C HamanoDec 12, 2013
  7. Jens LehmannDec 12, 2013
  8. W. Trevor KingDec 12, 2013
  9. Jonathan NiederDec 12, 2013
  10. Junio C HamanoDec 12, 2013

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.