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

Re: Are clone/checkout operations deterministic?

From
Duy Nguyen <pclouds@gmail.com>
Date
Jul 17, 2018, 18:06 UTC
Message-ID
<CACsJy8A0KUyxK_2NAMh+da9yithZM5d68rhqEVZe3NcMxinAjA@mail.gmail.com>
In-Reply-To
<87bmb6chvm.fsf@evledraar.gmail.com>

On Tue, Jul 17, 2018 at 11:50 AM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:

Show 8 quoted lines
> In practice I think clone, checkout, reset etc. always work in the same
> order you see with `git ls-tree -r --name-only HEAD`, but as far as I
> know this has never been guaranteed or documented, and shouldn't be
> relied on.
>
> E.g. there's probably cases where writing files in parallel is going to
> be faster than writing them sequentially. We don't have such a mode just
> because nobody's written a patch for it, but having that patch would

Well I did have some patches [1] but as usually I did not follow through. Interestingly there's actually concern about timestamp order [2] even back then

[1] https://public-inbox.org/git/20160415095139.GA3985@lanh/ [2] https://public-inbox.org/git/CAP8UFD0WZHriY340eh3K6ygzb0tXnoT+XaY8+c2k+N2x9UBYxA@mail.gmail.com/

> break any assumptions of our current order.
-- 
Duy
Previous: Stefan BellerNext: Jeff King
Message 4 of 5 in “Are clone/checkout operations deterministic?”
  1. J. Paul ReedJul 17, 2018
  2. Ævar Arnfjörð BjarmasonJul 17, 2018
  3. Stefan BellerJul 17, 2018
  4. Duy NguyenJul 17, 2018
  5. Jeff KingJul 17, 2018

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.