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

Re: [PATCH, RFC] checkout: Attempt to checkout submodules

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 19, 2015, 21:15 UTC
Message-ID
<xmqq3850it94.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150319201509.GB21536@tsaunders-iceball.corp.tor1.mozilla.com>
Trevor Saunders <tbsaunde@tbsaunde.org> writes:
> On one hand it seems kind of user hostile to just toss out any changes
> in the submodule that are uncommitted, on the other for any other path
> it would seem weird to have git checkout trigger rebasing or merging.
I think that is exactly why we do not do anything in this codepath.

I have a feeling that an optional feature that allows "git submodule update" to happen automatically from this codepath might be acceptable by the submodule folks, and they might even say it does not even have to be optional but should be enabled by default.

But I do not think it would fly well to unconditionally run "checkout -f" here.

Previous: Trevor SaundersNext: Trevor Saunders
Message 4 of 8 in “checkout: Attempt to checkout submodules”
  1. checkout: Attempt to checkout submodulesTrevor Saunders, Mar 18, 2015
  2. Junio C HamanoMar 19, 2015
  3. Trevor SaundersMar 19, 2015
  4. Junio C HamanoMar 19, 2015
  5. Trevor SaundersMar 20, 2015
  6. Jens LehmannMar 23, 2015
  7. Trevor SaundersMar 24, 2015
  8. Jens LehmannMar 25, 2015

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.