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

Re: [OT] USENIX paper on Git

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 3, 2016, 17:35 UTC
Message-ID
<xmqqy44d92md.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160803172242.5jrd4saq7sga6iql@LykOS.localdomain>
Santiago Torres <santiago@nyu.edu> writes:
Show 8 quoted lines
>> Submodules actually track commits, not tags or branches.
>> 
>> This is confusing for some users, e.g. the user intended to track
>> a library at version 1.1, but it tracks 1234abcd instead (which is what
>> 1.1 points at).
>
> I'm assuming that git submodule update does update where the ref points
> to, does it not?

I think you may configure the command to do so, instead of the default "detach at the commit recorded in the superproject".

But then your tree immediately will be marked by "git status" as "modified" at such a submodule, meaning "what you have in the working tree is different from what the commit in the superproject wants you to have", I would think.

Previous: Santiago TorresNext: Santiago Torres
Message 6 of 15 in “[OT] USENIX paper on Git”
  1. Santiago TorresAug 3, 2016
  2. Johannes SchindelinAug 3, 2016
  3. Santiago TorresAug 3, 2016
  4. Stefan BellerAug 3, 2016
  5. Santiago TorresAug 3, 2016
  6. Junio C HamanoAug 3, 2016
  7. Santiago TorresAug 3, 2016
  8. Stefan BellerAug 3, 2016
  9. Santiago TorresAug 3, 2016
  10. Jeff KingAug 3, 2016
  11. Junio C HamanoAug 3, 2016
  12. Santiago TorresAug 3, 2016
  13. Jeff KingAug 3, 2016
  14. Santiago TorresAug 3, 2016
  15. David LangAug 3, 2016

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.